view src/synchronizedQueue/allocate.h @ 66:a870c84acd0e

Change synchronizedQueue allocator from __code to Function call
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Tue, 15 Sep 2015 15:21:50 +0900
parents 89d760486188
children
line wrap: on
line source

void allocator(struct Context* context) { 
    context->data[++context->dataNum] = context->heap; 
    context->heap += context->data[0]->allocate.size; 
    return;
}