fix commit that mistakenly happened master
authorbdemsky <bdemsky@uci.edu>
Thu, 17 Dec 2015 09:17:51 +0000 (01:17 -0800)
committerbdemsky <bdemsky@uci.edu>
Thu, 17 Dec 2015 09:17:51 +0000 (01:17 -0800)
spsc-bugfix/spsc-queue.cc

index ada08ec..f8528a8 100644 (file)
@@ -6,7 +6,6 @@ spsc_queue<int> *q;
 
        void thread(unsigned thread_index)
        {
 
        void thread(unsigned thread_index)
        {
-               for (int i = 0; i < 40; i++) {
                if (0 == thread_index)
                {
                        q->enqueue(11);
                if (0 == thread_index)
                {
                        q->enqueue(11);
@@ -16,7 +15,6 @@ spsc_queue<int> *q;
                        int d = q->dequeue();
                        RL_ASSERT(11 == d);
                }
                        int d = q->dequeue();
                        RL_ASSERT(11 == d);
                }
-               }
        }
 
 int user_main(int argc, char **argv)
        }
 
 int user_main(int argc, char **argv)