#include <LockedQueue.h>
template<class T, typename StorageType = std::deque<T>>
Create a LockedQueue.
volatile bool _canceled
Cancellation flag.
Definition: LockedQueue.h:35
template<class T, typename StorageType = std::deque<T>>
template<class T, typename StorageType = std::deque<T>>
Adds an item to the queue.
void unlock()
Unlocks the queue.
Definition: LockedQueue.h:133
StorageType _queue
Storage backing the queue.
Definition: LockedQueue.h:32
void lock()
Locks the queue for access.
Definition: LockedQueue.h:127
template<class T, typename StorageType = std::deque<T>>
Cancels the queue.
void lock()
Locks the queue for access.
Definition: LockedQueue.h:127
volatile bool _canceled
Cancellation flag.
Definition: LockedQueue.h:35
std::mutex _lock
Lock access to the queue.
Definition: LockedQueue.h:29
template<class T, typename StorageType = std::deque<T>>
Checks if the queue is cancelled.
void lock()
Locks the queue for access.
Definition: LockedQueue.h:127
volatile bool _canceled
Cancellation flag.
Definition: LockedQueue.h:35
std::mutex _lock
Lock access to the queue.
Definition: LockedQueue.h:29
template<class T, typename StorageType = std::deque<T>>
! Checks if we're empty or not with locks held
StorageType _queue
Storage backing the queue.
Definition: LockedQueue.h:32
void lock()
Locks the queue for access.
Definition: LockedQueue.h:127
std::mutex _lock
Lock access to the queue.
Definition: LockedQueue.h:29
template<class T, typename StorageType = std::deque<T>>
Locks the queue for access.
std::mutex _lock
Lock access to the queue.
Definition: LockedQueue.h:29
template<class T, typename StorageType = std::deque<T>>
Gets the next result in the queue, if any.
StorageType _queue
Storage backing the queue.
Definition: LockedQueue.h:32
void lock()
Locks the queue for access.
Definition: LockedQueue.h:127
std::mutex _lock
Lock access to the queue.
Definition: LockedQueue.h:29
template<class T, typename StorageType = std::deque<T>>
template<class Checker >
91 if (!
check.Process(result))
StorageType _queue
Storage backing the queue.
Definition: LockedQueue.h:32
void lock()
Locks the queue for access.
Definition: LockedQueue.h:127
T check(T value)
Definition: format.h:305
std::mutex _lock
Lock access to the queue.
Definition: LockedQueue.h:29
template<class T, typename StorageType = std::deque<T>>
Peeks at the top of the queue. Check if the queue is empty before calling! Remember to unlock after use if autoUnlock == false.
103 T& result =
_queue.front();
void unlock()
Unlocks the queue.
Definition: LockedQueue.h:133
StorageType _queue
Storage backing the queue.
Definition: LockedQueue.h:32
void lock()
Locks the queue for access.
Definition: LockedQueue.h:127
template<class T, typename StorageType = std::deque<T>>
! Calls pop_front of the queue
StorageType _queue
Storage backing the queue.
Definition: LockedQueue.h:32
void lock()
Locks the queue for access.
Definition: LockedQueue.h:127
std::mutex _lock
Lock access to the queue.
Definition: LockedQueue.h:29
template<class T, typename StorageType = std::deque<T>>
template<class Iterator >
void LockedQueue< T, StorageType >::readd |
( |
Iterator |
begin, |
|
|
Iterator |
end |
|
) |
| |
|
inline |
Adds items back to front of the queue.
StorageType _queue
Storage backing the queue.
Definition: LockedQueue.h:32
void lock()
Locks the queue for access.
Definition: LockedQueue.h:127
std::mutex _lock
Lock access to the queue.
Definition: LockedQueue.h:29
template<class T, typename StorageType = std::deque<T>>
Unlocks the queue.
135 this->
_lock.unlock();
std::mutex _lock
Lock access to the queue.
Definition: LockedQueue.h:29
template<class T, typename StorageType = std::deque<T>>
template<class T, typename StorageType = std::deque<T>>
Lock access to the queue.
template<class T, typename StorageType = std::deque<T>>
Storage backing the queue.
The documentation for this class was generated from the following file: