changes
[model-checker-benchmarks.git] / chase-lev-deque-bugfix / testcase6.c
index 2a3763663e7b040f70536eb7fb84478efd27502b..92f33ec409a27f4d2553057dcd0972d9857f3b2a 100644 (file)
@@ -14,24 +14,24 @@ int b;
 int c;
 
 static void task(void * param) {
-       b=steal(q);
-       //c=steal(q);
+       a=steal(q);
+       printf("steal a=%d\n", a);
 }
 
 int user_main(int argc, char **argv)
 {
        thrd_t t1, t2;
        q=create();
-
        push(q, 1);
-       push(q, 2);
-       push(q, 3);
        thrd_create(&t1, task, 0);
-       thrd_create(&t2, task, 0);
-       a=take(q);
+       //thrd_create(&t2, task, 0);
+       //push(q, 2);
+       //push(q, 4);
+       b=take(q);
+       printf("take b=%d\n", b);
        //c=take(q);
        thrd_join(t1);
-       thrd_join(t2);
+       //thrd_join(t2);
 
 /*
        bool correct=true;