Mercurial > hg > Papers > 2021 > anatofuz-master
view paper/src/singleContext.h @ 158:d2be76d48b00 default tip
update
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 17 Feb 2021 14:37:21 +0900 |
parents | 3a8c21a37bf1 |
children |
line wrap: on
line source
union Data { /* 略 */ // Queue Interface struct Queue { union Data* queue; union Data* data; enum Code whenEmpty; enum Code clear; enum Code put; enum Code take; enum Code isEmpty; enum Code next; } Queue; struct SingleLinkedQueue { struct Element* top; struct Element* last; } SingleLinkedQueue; struct SynchronizedQueue { struct Element* top; struct Element* last; struct Atomic* atomic; } SynchronizedQueue; /* 略 */ };