Mercurial > hg > Papers > 2021 > anatofuz-master
annotate paper/src/queue.h @ 111:4642d2f215d2
update
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 06 Feb 2021 15:42:26 +0900 |
parents | e1842c36937e |
children |
rev | line source |
---|---|
73 | 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(...); | |
10 } Queue; |