ms-queue: bugfix - get_ptr() and get_count() were switched
[model-checker-benchmarks.git] / ms-queue / my_queue.c
index 33a62925c7a6a195fc0002cd54b2d3ce8807553a..498fb42b1188bb344bde560c6bd570f468558dbf 100644 (file)
@@ -31,8 +31,6 @@ void init_queue(queue_t *q, int num_threads)
        tail = MAKE_POINTER(1, 0);
        next = MAKE_POINTER(0, 0); // (NULL, 0)
 
-       atomic_init(&q->nodes[0].next, 0); // assumed inititalized in original example
-
        atomic_store(&q->head, head);
        atomic_store(&q->tail, tail);
        atomic_store(&q->nodes[1].next, next);