Mercurial > hg > Members > Moririn
view src/synchronizedQueue/allocate.h @ 64:89d760486188
Add allocater to synchronizedQueue
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 13 Jul 2015 23:22:12 +0900 |
parents | |
children | a870c84acd0e |
line wrap: on
line source
__code allocate(); __code meta_allocate(); extern __code meta(); __code allocate(struct Context* context) { goto meta_allocate(context); } __code meta_allocate(struct Context* context) { context->data[++context->dataNum] = context->heap; context->heap += context->data[0]->allocate.size; goto (context->code[context->data[0]->allocate.next])(context); }