diff src/parallel_execution/context.c @ 145:cc071cf1ba85

add stack clear interface
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 10 Nov 2016 07:51:15 +0900
parents d529c024e5a5
children f2275f5777f4
line wrap: on
line diff
--- a/src/parallel_execution/context.c	Thu Nov 10 07:33:10 2016 +0900
+++ b/src/parallel_execution/context.c	Thu Nov 10 07:51:15 2016 +0900
@@ -59,8 +59,6 @@
 extern __code putQueue3_stub(struct Context*);
 extern __code putQueue4_stub(struct Context*);
 extern __code getQueue_stub(struct Context*);
-extern __code pushSingleLinkedStack_stub(struct Context*);
-extern __code popSingleLinkedStack_stub(struct Context*);
 extern __code spawnTask_stub(struct Context*);
 extern __code twice_stub(struct Context*);
 extern __code start_time_stub(struct Context*);
@@ -96,6 +94,7 @@
     context->code[C_get]           = get_stub;
     context->code[C_search]        = search_stub;
 
+    context->code[C_clearSingleLinkedStack] = clearSingleLinkedStack_stub;
     context->code[C_pushSingleLinkedStack] = pushSingleLinkedStack_stub;
     context->code[C_popSingleLinkedStack] = popSingleLinkedStack_stub;
     context->code[C_pop2SingleLinkedStack] = pop2SingleLinkedStack_stub;