Mercurial > hg > GearsTemplate
view src/synchronizedQueue/origin_cs.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 | |
children |
line wrap: on
line source
#include <stdlib.h> #include "synchronizedQueueContext.h" __code meta(struct Context* context, enum Code next) { goto (context->code[next])(context); } __code start_code(struct Context* context, enum Code next) { goto meta(context, next); } __code exit_code(struct Context* context) { free(context->code); free(context->data); free(context->heapStart); goto exit(0); }