Mercurial > hg > GearsTemplate
changeset 491:f985815ad032
Replace goto meta for SynchronizedQueue
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 Dec 2017 03:16:05 +0900 |
parents | ef965008bef1 |
children | 9333486471b9 |
files | src/parallel_execution/SynchronizedQueue.cbc |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parallel_execution/SynchronizedQueue.cbc Fri Dec 29 19:28:24 2017 +0900 +++ b/src/parallel_execution/SynchronizedQueue.cbc Sat Dec 30 03:16:05 2017 +0900 @@ -36,7 +36,7 @@ Element* last = queue->last; Element* nextElement = last->next; if (last != queue->last) { - goto meta(context, C_putSynchronizedQueue); + goto putSynchronizedQueue(); } if (nextElement == NULL) { struct Atomic* atomic = queue->atomic; @@ -52,7 +52,7 @@ struct Element* last = queue->last; struct Element* nextElement = top->next; if (top != queue->top) { - goto meta(context, C_takeSynchronizedQueue); + goto takeSynchronizedQueue(); } if (top == last) { if (nextElement != NULL) { @@ -63,7 +63,7 @@ struct Atomic* atomic = queue->atomic; goto atomic->checkAndSet(&queue->top, top, nextElement, takeSynchronizedQueue1, takeSynchronizedQueue); } - goto meta(context, C_takeSynchronizedQueue); + goto takeSynchronizedQueue(); } __code takeSynchronizedQueue1(struct SynchronizedQueue* queue, __code next(union Data* data, ...), struct Element* nextElement) { @@ -87,7 +87,7 @@ struct Element* last = queue->last; struct Element* nextElement = top->next; if (top != queue->top) { - goto meta(context, C_isEmptySynchronizedQueue); + goto isEmptySynchronizedQueue(); } if (top == last && nextElement == NULL) { goto whenEmpty(...);