X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker-benchmarks.git;a=blobdiff_plain;f=chase-lev-deque%2Fmain.c;h=77ea5a850451d06c9e66eb627ade7ab4dd0e6946;hp=64d044450a93c5bccee63243ef5b279b6f622ea0;hb=510a66b137541be02613138e522213cdc4b9e9d5;hpb=b2f7bb95913baa71483d088402a32d5ca64b56f7 diff --git a/chase-lev-deque/main.c b/chase-lev-deque/main.c index 64d0444..77ea5a8 100644 --- a/chase-lev-deque/main.c +++ b/chase-lev-deque/main.c @@ -21,7 +21,9 @@ int user_main(int argc, char **argv) thrd_create(&t, task, 0); push(q, 1); push(q, 2); - b=take(q); + do { + b=take(q); + } while(b==EMPTY); thrd_join(t); if (a+b!=3) printf("a=%d b=%d\n",a,b);