projects
/
model-checker-benchmarks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ms-queue: bugfix - get_ptr() and get_count() were switched
[model-checker-benchmarks.git]
/
ms-queue
/
my_queue.c
diff --git
a/ms-queue/my_queue.c
b/ms-queue/my_queue.c
index 33a62925c7a6a195fc0002cd54b2d3ce8807553a..498fb42b1188bb344bde560c6bd570f468558dbf 100644
(file)
--- a/
ms-queue/my_queue.c
+++ b/
ms-queue/my_queue.c
@@
-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);