Mercurial > hg > GearsTemplate
comparison src/synchronizedQueue/synchronizedQueueContext.h @ 58:4283b87ddbf4
Add stub to synchronizedQueues
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 16 Jun 2015 15:59:48 +0900 |
parents | 83ee9c75115a |
children | 2a40d697bf4e |
comparison
equal
deleted
inserted
replaced
55:2ff693c5563c | 58:4283b87ddbf4 |
---|---|
38 }; | 38 }; |
39 | 39 |
40 union Data { | 40 union Data { |
41 long count; | 41 long count; |
42 struct Queue { | 42 struct Queue { |
43 union Data* first; | 43 struct Element* first; |
44 union Data* last; | 44 struct Element* last; |
45 int count; | 45 int count; |
46 pthread_mutex_t mutex; | 46 pthread_mutex_t mutex; |
47 pthread_cond_t cond; | 47 pthread_cond_t cond; |
48 } queue; | 48 } queue; |
49 struct Element { | 49 struct Element { |
50 int value; | 50 int value; |
51 union Data* next; | 51 struct Element* next; |
52 } element; | 52 } element; |
53 struct Allocate { | 53 struct Allocate { |
54 long size; | 54 long size; |
55 enum Code next; | 55 enum Code next; |
56 enum Code after_put; | 56 enum Code after_put; |