deque, and take() gets the last element. The hb ensures that the steal() will
see the updated bottom in take(). However, since fence (w34) is SC, w33 MAY be
relaxed.
+!!! w33 can be relaxed since w34 is an SC fence. Probably w12 doesn't have to be
+release since w8 is an SC fence too, so it will have establish hb between the
+fences.
+
+##################################################
+testcase5.c is a testcase that has 2 threads, 1 of which has 1 steal() and the
+other has 3 push() followed by 2 take().
thrd_create(&t1, task, 0);
//thrd_create(&t2, task, 0);
push(q, 2);
- //push(q, 3);
- //a=take(q);
- //c=take(q);
+ push(q, 3);
+ a=take(q);
+ c=take(q);
thrd_join(t1);
//thrd_join(t2);