comparison src/synchronizedQueue/synchronizedQueueContext.h @ 38:ce9fde200f3e

Add code segment sender & receiver to synchronizedQueue
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Sat, 16 May 2015 02:45:31 +0900
parents 240c045ebab2
children 754c90e96e3d
comparison
equal deleted inserted replaced
37:a1fc4c670150 38:ce9fde200f3e
8 Code3, 8 Code3,
9 Code4, 9 Code4,
10 Code5, 10 Code5,
11 Code6, 11 Code6,
12 Allocator, 12 Allocator,
13 Sender,
13 Put, 14 Put,
14 Traverse, 15 Receiver,
15 Get, 16 Get,
16 Exit, 17 Exit,
17 }; 18 };
18 19
19 enum UniqueData { 20 enum UniqueData {
33 }; 34 };
34 35
35 union Data { 36 union Data {
36 long count; 37 long count;
37 struct Queue { 38 struct Queue {
38 union Data* head; 39 union Data* first;
39 union Data* tail; 40 union Data* last;
40 union Data* current; 41 int count;
41 int dataSize;
42 } queue; 42 } queue;
43 struct Element { 43 struct Element {
44 int value; 44 int value;
45 union Data* next; 45 union Data* next;
46 } element; 46 } element;
47 struct Allocate { 47 struct Allocate {
48 long size; 48 long size;
49 enum Code next; 49 enum Code next;
50 enum Code after_put; 50 enum Code after_put;
51 enum Code after_get; 51 enum Code after_get;
52 enum Code after_traverse;
53 } allocate; 52 } allocate;
54 }; 53 };