X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=spsc-bugfix%2Fspsc-queue.cc;h=ada08ecf846ffae27ab70896a46c598c5ae4d88b;hb=c046bae812a0dd4d54be2236487c112d36641538;hp=f8528a862acd8f5097ebb3d781e73e8eb7955864;hpb=991d0fdc0fb17f85d485c97dc2c5d8d57a98dad9;p=model-checker-benchmarks.git diff --git a/spsc-bugfix/spsc-queue.cc b/spsc-bugfix/spsc-queue.cc index f8528a8..ada08ec 100644 --- a/spsc-bugfix/spsc-queue.cc +++ b/spsc-bugfix/spsc-queue.cc @@ -6,6 +6,7 @@ spsc_queue *q; void thread(unsigned thread_index) { + for (int i = 0; i < 40; i++) { if (0 == thread_index) { q->enqueue(11); @@ -15,6 +16,7 @@ spsc_queue *q; int d = q->dequeue(); RL_ASSERT(11 == d); } + } } int user_main(int argc, char **argv)