make compile
[IRC.git] / Robust / src / Runtime / mlp_runtime.c
index a7b6daeec81d60a358450d1c73da1667c0f72e66..4668f30c053496d8cec6862e0af54dd823d2b14b 100644 (file)
@@ -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);