18#ifndef __SOFTHDQUEUE_H
19#define __SOFTHDQUEUE_H
48 std::lock_guard<std::mutex> lock(
m_mutex);
65 std::lock_guard<std::mutex> lock(
m_mutex);
83 std::lock_guard<std::mutex> lock(
m_mutex);
96 std::lock_guard<std::mutex> lock(
m_mutex);
107 std::lock_guard<std::mutex> lock(
m_mutex);
118 std::lock_guard<std::mutex> lock(
m_mutex);
129 std::lock_guard<std::mutex> lock(
m_mutex);
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.