projects
/
model-checker-benchmarks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes
[model-checker-benchmarks.git]
/
chase-lev-deque-bugfix
/
testcase6.c
diff --git
a/chase-lev-deque-bugfix/testcase6.c
b/chase-lev-deque-bugfix/testcase6.c
index 2a3763663e7b040f70536eb7fb84478efd27502b..e621af9d2b31178583a244cd47faa89e64085475 100644
(file)
--- a/
chase-lev-deque-bugfix/testcase6.c
+++ b/
chase-lev-deque-bugfix/testcase6.c
@@
-13,7
+13,14
@@
int a;
int b;
int c;
int b;
int c;
-static void task(void * param) {
+/** Making w15 release */
+
+static void task1(void * param) {
+ b=steal(q);
+ //c=steal(q);
+}
+
+static void task2(void * param) {
b=steal(q);
//c=steal(q);
}
b=steal(q);
//c=steal(q);
}
@@
-24,12
+31,13
@@
int user_main(int argc, char **argv)
q=create();
push(q, 1);
q=create();
push(q, 1);
- push(q, 2);
- push(q, 3);
- thrd_create(&t1, task, 0);
- thrd_create(&t2, task, 0);
+ thrd_create(&t1, task1, 0);
+ thrd_create(&t2, task2, 0);
a=take(q);
a=take(q);
- //c=take(q);
+ push(q, 2);
+ c=take(q);
+ //push(q, 2);
+ //push(q, 3);
thrd_join(t1);
thrd_join(t2);
thrd_join(t1);
thrd_join(t2);