annotate src/synchronizedQueue/allocate.h @ 233:06133afb3b5b

create worker start_code
author mir3636
date Sun, 22 Jan 2017 20:02:21 +0900
parents a870c84acd0e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
66
a870c84acd0e Change synchronizedQueue allocator from __code to Function call
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 64
diff changeset
1 void allocator(struct Context* context) {
64
89d760486188 Add allocater to synchronizedQueue
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 context->data[++context->dataNum] = context->heap;
89d760486188 Add allocater to synchronizedQueue
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 context->heap += context->data[0]->allocate.size;
66
a870c84acd0e Change synchronizedQueue allocator from __code to Function call
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 64
diff changeset
4 return;
64
89d760486188 Add allocater to synchronizedQueue
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 }