From: bdemsky Date: Mon, 25 Oct 2010 20:54:53 +0000 (+0000) Subject: make the traversers do something X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2e959bbcddff0665d555c1128bc147dc0f89111d;p=IRC.git make the traversers do something --- diff --git a/Robust/src/Runtime/oooJava/rcr_runtime.c b/Robust/src/Runtime/oooJava/rcr_runtime.c index d5977261..cdcd1b14 100644 --- a/Robust/src/Runtime/oooJava/rcr_runtime.c +++ b/Robust/src/Runtime/oooJava/rcr_runtime.c @@ -1,7 +1,8 @@ #include "trqueue.h" #include "mlp_runtime.h" #include "rcr_runtime.h" - +#include "structdefs.h" +#include "RuntimeConflictResolver.h" void * workerTR(void *x) { struct trQueue * queue=(struct trQueue *)x; @@ -9,9 +10,11 @@ void * workerTR(void *x) { SESEcommon * tmp; do { tmp=(SESEcommon *) dequeueTR(queue); - if (tmp!=NULL) - break; - sched_yield(); + if (tmp!=NULL) { + tasktraverse(tmp); + } else { + sched_yield(); + } } while(1); } return NULL;