Mercurial > hg > GearsTemplate
diff src/synchronizedQueue/synchronizedQueueContext.h @ 63:2a40d697bf4e
Delete while loop for cas
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 13 Jul 2015 23:20:31 +0900 |
parents | 4283b87ddbf4 |
children | a870c84acd0e |
line wrap: on
line diff
--- a/src/synchronizedQueue/synchronizedQueueContext.h Fri Jun 26 18:45:02 2015 +0900 +++ b/src/synchronizedQueue/synchronizedQueueContext.h Mon Jul 13 23:20:31 2015 +0900 @@ -11,25 +11,32 @@ Code5, Code6, Code7, + Code8, + Code9, + Code10, + Code11, Allocator, Sender, Put, + ContinuePut, Receiver, Get, + ContinueGet, + ThreadExit, Exit, - ThreadExit, }; enum UniqueData { Allocate, Queue, Counter, + TimeOut, }; struct Context { int codeNum; __code (**code) (struct Context *); - void* heap_start; + void* heapStart; void* heap; long dataSize; int dataNum; @@ -39,6 +46,7 @@ union Data { long count; + long timeOut; struct Queue { struct Element* first; struct Element* last;