Mercurial > hg > Papers > 2021 > anatofuz-master
view 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 |
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; /* 略 */ };