Mercurial > hg > GearsTemplate
annotate src/parallel_execution/Queue.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 | fb50cf8aa615 |
children |
rev | line source |
---|---|
266 | 1 typedef struct Queue<Impl>{ |
2 union Data* queue; | |
3 union Data* data; | |
4 __code whenEmpty(...); | |
5 __code clear(Impl* queue, __code next(...)); | |
6 __code put(Impl* queue, union Data* data, __code next(...)); | |
7 __code take(Impl* queue, __code next(union Data*, ...)); | |
8 __code isEmpty(Impl* queue, __code next(...), __code whenEmpty(...)); | |
9 __code next(...); | |
286 | 10 } Queue; |