Mercurial > hg > Papers > 2021 > anatofuz-master
annotate paper/src/singleContext.h @ 56:3a8c21a37bf1
interface
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 02 Feb 2021 14:17:05 +0900 |
parents | |
children |
rev | line source |
---|---|
56 | 1 union Data { |
2 /* 略 */ | |
3 // Queue Interface | |
4 struct Queue { | |
5 union Data* queue; | |
6 union Data* data; | |
7 enum Code whenEmpty; | |
8 enum Code clear; | |
9 enum Code put; | |
10 enum Code take; | |
11 enum Code isEmpty; | |
12 enum Code next; | |
13 } Queue; | |
14 struct SingleLinkedQueue { | |
15 struct Element* top; | |
16 struct Element* last; | |
17 } SingleLinkedQueue; | |
18 struct SynchronizedQueue { | |
19 struct Element* top; | |
20 struct Element* last; | |
21 struct Atomic* atomic; | |
22 } SynchronizedQueue; | |
23 /* 略 */ | |
24 }; |