deque: wrong bug fix before...now the correct one
[model-checker-benchmarks.git] / chase-lev-deque / main.c
index 64d044450a93c5bccee63243ef5b279b6f622ea0..ee69867f2ebb37d1aa1cd4d9c0bb9f19c0ef2926 100644 (file)
@@ -11,7 +11,9 @@ int a;
 int b;
 
 static void task(void * param) {
-       a=steal(q);
+       do {
+               a=steal(q);
+       } while(a==EMPTY);
 }
 
 int user_main(int argc, char **argv)