2 std::atomic<int> value;
3 std::atomic<struct node *> next;
7 std::atomic<struct node *> head;
8 std::atomic<struct node *> tail;
11 //void init_queue(queue_t *q, int num_threads);
12 //void enqueue(queue_t *q, unsigned int val);
13 //bool dequeue(queue_t *q, unsigned int *retVal);