view src/parallel_execution/Semaphore.cbc @ 456:95f58f2b2c0e

Add TaskIterator
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Mon, 11 Dec 2017 16:26:55 +0900
parents de1e315379c6
children
line wrap: on
line source

typedef struct Semaphore<Impl>{
        union Data* semaphore;
        __code p(Impl* semaphore, __code next(...)); 
        __code v(Impl* semaphore, __code next(...)); 
        __code next(...);
} Semaphore;