#include <container.h>
Public Member Functions | |
| MutexedQueue ()=default | |
| bool | empty () const |
| void | push_back (const T &t) |
| void | push_back (T &&t) |
| T | pop_frontNoEx (u32 wait_time_max_ms) |
| T | pop_front (u32 wait_time_max_ms) |
| T | pop_frontNoEx () |
| T | pop_back (u32 wait_time_max_ms=0) |
| T | pop_backNoEx (u32 wait_time_max_ms) |
| T | pop_backNoEx () |
Protected Member Functions | |
| std::mutex & | getMutex () |
| std::deque< T > & | getQueue () |
Protected Attributes | |
| std::deque< T > | m_queue |
| std::mutex | m_mutex |
| Semaphore | m_signal |
Friends | |
| template<typename Key, typename U, typename Caller, typename CallerData> | |
| class | RequestQueue |
|
default |
|
inline |
|
inlineprotected |
References m_mutex.
|
inlineprotected |
References m_queue.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References m_mutex, m_queue, and m_signal.
Referenced by ShaderSource::getShader().
|
inline |
References m_mutex, m_queue, and m_signal.
Referenced by RequestQueue< Key, T, Caller, CallerData >::add().
|
inline |
|
friend |
References RequestQueue.
Referenced by RequestQueue.
|
mutableprotected |
Referenced by empty(), getMutex(), pop_back(), pop_backNoEx(), pop_backNoEx(), pop_front(), pop_frontNoEx(), pop_frontNoEx(), push_back(), and push_back().
|
protected |
Referenced by empty(), getQueue(), pop_back(), pop_backNoEx(), pop_backNoEx(), pop_front(), pop_frontNoEx(), pop_frontNoEx(), push_back(), and push_back().
|
protected |
Referenced by pop_back(), pop_backNoEx(), pop_backNoEx(), pop_front(), pop_frontNoEx(), pop_frontNoEx(), push_back(), and push_back().