view src/synchronizedQueue/allocate.h @ 143:34a7a21edc36

recude stack get using traverse field
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 09 Nov 2016 22:33:16 +0900
parents a870c84acd0e
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;
}