view src/include/allocate.h @ 361:a2c01ab30ea2

Add synchronized queue of paper
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Wed, 28 Jun 2017 05:48:39 +0900
parents 368306e1bfed
children
line wrap: on
line source

__code allocate();
__code meta_allocate();

__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 meta(context, context->next[--context->current]);
}