X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=chase-lev-deque-bugfix%2Ftestcase9.c;h=b8560eeac50f3c921f6e1598083e61dae4261f83;hb=d634d19b6134309ed0893c6fd58d815cbafecd16;hp=273bae35b7fad29f1c0c194dee930f6d7dc0335d;hpb=7c7e31a160e2327090e2a4ed74d48fbae4ae20e9;p=model-checker-benchmarks.git diff --git a/chase-lev-deque-bugfix/testcase9.c b/chase-lev-deque-bugfix/testcase9.c index 273bae3..b8560ee 100644 --- a/chase-lev-deque-bugfix/testcase9.c +++ b/chase-lev-deque-bugfix/testcase9.c @@ -13,12 +13,7 @@ int a; int b; int c; -static void task1(void * param) { - b=steal(q); - //c=steal(q); -} - -static void task2(void * param) { +static void task(void * param) { b=steal(q); //c=steal(q); } @@ -29,15 +24,14 @@ int user_main(int argc, char **argv) q=create(); push(q, 1); - thrd_create(&t1, task1, 0); - thrd_create(&t2, task2, 0); - a=take(q); push(q, 2); + push(q, 3); + thrd_create(&t1, task, 0); + //thrd_create(&t2, task, 0); + a=take(q); c=take(q); - //push(q, 2); - //push(q, 3); thrd_join(t1); - thrd_join(t2); + //thrd_join(t2); /* bool correct=true;