X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=blobdiff_plain;f=benchmark%2Fchase-lev-deque-bugfix%2Fmain.c;h=fd67b60ec7a02ebf39244821030f541699260737;hp=6be90a5f7ffe73fc49f731ba6fd80cdf9f48e1f8;hb=52802de070a3314dfdd75c039c8e41d79d493996;hpb=6d0e5824cfcdd3569f05e8d2a11992e7ac9a344f;ds=sidebyside diff --git a/benchmark/chase-lev-deque-bugfix/main.c b/benchmark/chase-lev-deque-bugfix/main.c index 6be90a5..fd67b60 100644 --- a/benchmark/chase-lev-deque-bugfix/main.c +++ b/benchmark/chase-lev-deque-bugfix/main.c @@ -14,13 +14,18 @@ int b; int c; static void task(void * param) { - //a=steal(q); a=steal(q); if (a == ABORT) { printf("Steal NULL\n"); } else { printf("Steal %d\n", a); } + int x=steal(q); + if (x == ABORT) { + printf("Steal NULL\n"); + } else { + printf("Steal %d\n", x); + } } int user_main(int argc, char **argv)