Mercurial > hg > GearsTemplate
view src/parallel_execution/Atomic.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 | 0c024ea61601 |
children |
line wrap: on
line source
typedef struct Atomic<Impl>{ union Data* atomic; union Data** ptr; union Data* oldData; union Data* newData; __code checkAndSet(Impl* atomic, union Data** ptr, union Data* oldData, union Data* newData, __code next(...), __code fail(...)); __code next(...); __code fail(...); } Atomic;