1 #ifndef _CONCURRENTLINKEDLISTQUEUE_HPP__
2 #define _CONCURRENTLINKEDLISTQUEUE_HPP__
6 /** Class ConcurrentLinkedListQueue is a queue that can handle
7 * concurrent requests and packets for IoT communication via socket.
9 * It stores object through a void pointer.
11 * @author Rahmadi Trimananda <rtrimana @ uci.edu>
31 void setNext(Node* nxt);
36 class ConcurrentLinkedListQueue {
43 ConcurrentLinkedListQueue();
44 ~ConcurrentLinkedListQueue();
45 void enqueue(void* value); // Enqueue to tail
46 void* dequeue(); // Dequeue from tail