Node zero *should* be unused, since "0" is the NULL pointer index.
Removing this init will help catch bugs.
for (i = 0; i < num_threads; i++)
node_nums[i] = 2 + i;
for (i = 0; i < num_threads; i++)
node_nums[i] = 2 + i;
- /* Note: needed to add this init manually */
- atomic_init(&q->nodes[0].next, 0);
-
/* initialize queue */
head = MAKE_POINTER(1, 0);
tail = MAKE_POINTER(1, 0);
/* initialize queue */
head = MAKE_POINTER(1, 0);
tail = MAKE_POINTER(1, 0);