annotate Paper/src/synchronizedQueue.h @ 0:a5facba1adbc

first
author ryokka
date Fri, 13 Apr 2018 18:07:04 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ryokka
parents:
diff changeset
1 struct SynchronizedQueue {
ryokka
parents:
diff changeset
2 struct Element* top;
ryokka
parents:
diff changeset
3 struct Element* last;
ryokka
parents:
diff changeset
4 struct Atomic* atomic;
ryokka
parents:
diff changeset
5 };
ryokka
parents:
diff changeset
6
ryokka
parents:
diff changeset
7 // Singly Linked List element
ryokka
parents:
diff changeset
8 struct Element {
ryokka
parents:
diff changeset
9 union Data* top;
ryokka
parents:
diff changeset
10 struct Element* next;
ryokka
parents:
diff changeset
11 };