comparison src/synchronizedQueue/synchronizedQueue.c @ 78:765ee56d68f1

Add origin_cs to synchronizedQueue
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Fri, 04 Dec 2015 17:57:34 +0900
parents 5c3db1bef268
children
comparison
equal deleted inserted replaced
77:618c03f25108 78:765ee56d68f1
13 13
14 #define NUM 100 14 #define NUM 100
15 15
16 extern __code initSynchronizedQueueContext(struct Context* context); 16 extern __code initSynchronizedQueueContext(struct Context* context);
17 extern void allocator(struct Context* context); 17 extern void allocator(struct Context* context);
18
19 __code meta(struct Context* context, enum Code next) {
20 goto (context->code[next])(context);
21 }
22 18
23 //__code code1(struct Context* context) { 19 //__code code1(struct Context* context) {
24 // context->data[Allocate]->allocate.size = sizeof(struct Element); 20 // context->data[Allocate]->allocate.size = sizeof(struct Element);
25 // goto code2(context); 21 // goto code2(context);
26 //} 22 //}