bug fix in threadsimulator
authorjzhou <jzhou>
Mon, 24 Nov 2008 22:30:36 +0000 (22:30 +0000)
committerjzhou <jzhou>
Mon, 24 Nov 2008 22:30:36 +0000 (22:30 +0000)
Robust/src/Runtime/multicoretask.c

index 237a1eb810fcf23742e8c0c0d707b4fe6b5de8a9..41999f32a5ff00b73c742c5cc3e538f7eedecaca 100644 (file)
@@ -4087,6 +4087,8 @@ execute:
            }
 #elif defined THREADSIMULATE
            for(i = 0; i < numparams; ++i) {
+                       int numlocks;
+             int * locks;
              if(0 == isolateflags[i]) {
                struct ___Object___ * tmpparam = (struct ___Object___ *)taskpointerarray[i+OFFSET];
                if(tmpparam->numlocks == 0) {