diff src/parallel_execution/Semaphore.cbc @ 286:fd470e090403

Add sempahore
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Sun, 05 Feb 2017 22:15:27 +0900
parents
children de1e315379c6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/parallel_execution/Semaphore.cbc	Sun Feb 05 22:15:27 2017 +0900
@@ -0,0 +1,7 @@
+typedef struct Semaphore<Impl>{
+        union Data* semaphore;
+        __code p(Impl* semaphore, __code next(...)); 
+        __code v(Impl* semaphore, __code next(...)); 
+        __code next(...);
+} Semaphore;
+