From 6b1eeed7942bd88a8a20d545346e79a7057f943f Mon Sep 17 00:00:00 2001 From: bdemsky Date: Mon, 28 Mar 2011 21:31:28 +0000 Subject: [PATCH] make compile --- Robust/src/Runtime/mlp_runtime.c | 6 +++--- Robust/src/Runtime/mlp_runtime.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Robust/src/Runtime/mlp_runtime.c b/Robust/src/Runtime/mlp_runtime.c index a7b6daee..4668f30c 100644 --- a/Robust/src/Runtime/mlp_runtime.c +++ b/Robust/src/Runtime/mlp_runtime.c @@ -585,7 +585,7 @@ int ADDSCC(MemoryQueue *Q, REntry *r) { return NOTREADY;//<- means that some other dispatcher got this one...so need to do accounting correctly } } else { - s->item.status=NOTREADY; + S->item.status=NOTREADY; Q->tail=(MemoryQueueItem*)S; return NOTREADY; } @@ -735,7 +735,7 @@ void RESOLVECHAIN(MemoryQueue *Q) { } else if (isVector(head)) { RESOLVEVECTOR(Q, (Vector *) head); } else if (isSingleItem(head)) { - RESOLVESCC((SCC *)head); + RESOLVESCC(Q, (SCC *)head); } if (head->next==NULL) break; @@ -832,7 +832,7 @@ void RESOLVEVECTOR(MemoryQueue *q, Vector *V) { } } -void RESOLVESCC(SCC *S) { + void RESOLVESCC(MemoryQueue *q, SCC *S) { //precondition: SCC's state is READY void* flag=NULL; flag=(void*)LOCKXCHG((unsigned INTPTR*)&(S->val), (unsigned INTPTR)flag); diff --git a/Robust/src/Runtime/mlp_runtime.h b/Robust/src/Runtime/mlp_runtime.h index 8573fe38..a0ccb5d1 100644 --- a/Robust/src/Runtime/mlp_runtime.h +++ b/Robust/src/Runtime/mlp_runtime.h @@ -282,7 +282,7 @@ void RETIREVECTOR(MemoryQueue *Q, REntry *r); void RESOLVECHAIN(MemoryQueue *Q); void RESOLVEHASHTABLE(MemoryQueue *Q, Hashtable *T); void RESOLVEVECTOR(MemoryQueue *q, Vector *V); -void RESOLVESCC(SCC *S); +void RESOLVESCC(MemoryQueue *q, SCC *S); void resolveDependencies(REntry* rentry); #ifndef RCR -- 2.34.1