10#ifndef __SOFTHDQUEUE_H
11#define __SOFTHDQUEUE_H
void Clear(void)
Remove all elements from the queue.
T * Pop(void)
Pop an element from the back of the queue.
bool IsEmpty(void)
Check if the queue is empty.
bool IsFull(void)
Check if the queue is full.
std::deque< T * > m_deque
Underlying deque container.
bool Push(T *element)
Push an element to the front of the queue.
size_t m_maxSize
Maximum queue capacity.
size_t Size(void)
Get the current size of the queue.
T * Peek(void)
Get a reference to the back element.
std::mutex m_mutex
Mutex for thread-safe access.