view src/parallel_execution/Lock.h @ 506:04441dd783c5

Add LockImpl
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Tue, 02 Jan 2018 06:16:40 +0900
parents
children
line wrap: on
line source

typedef struct Lock<Impl>{
        union Data* lock;
        __code doLock(Impl* lock, __code next(...)); 
        __code doUnlock(Impl* lock, __code next(...)); 
        __code next(...);
} Lock;