projects
/
model-checker-benchmarks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
deque: wrong bug fix before...now the correct one
[model-checker-benchmarks.git]
/
chase-lev-deque
/
main.c
diff --git
a/chase-lev-deque/main.c
b/chase-lev-deque/main.c
index 64d044450a93c5bccee63243ef5b279b6f622ea0..ee69867f2ebb37d1aa1cd4d9c0bb9f19c0ef2926 100644
(file)
--- a/
chase-lev-deque/main.c
+++ b/
chase-lev-deque/main.c
@@
-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)