Mercurial > hg > Members > Moririn
annotate src/synchronizedQueue/allocate.h @ 171:747067fe46bd
Fix selected Queue
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 24 Nov 2016 16:29:46 +0900 |
parents | a870c84acd0e |
children |
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 } |