|
|
| SyncQueue (const SyncQueue &)=delete |
| | Non-copyable, non-movable.
|
| |
|
SyncQueue & | operator= (const SyncQueue &)=delete |
| | Non-copyable, non-movable.
|
| |
|
| SyncQueue (SyncQueue &&)=delete |
| | Non-copyable, non-movable.
|
| |
|
SyncQueue & | operator= (SyncQueue &&)=delete |
| | Non-copyable, non-movable.
|
| |
| bool | Empty () const |
| | Checks whether this SyncQueue instance is empty.
|
| |
|
void | Close () |
| | Closes this SyncQueue instance, deletes all the queued elements, and blocks you from pulling any elements from the queue.
|
| |
| bool | Pull (T &element) |
| | Pulls one element from the SyncQueue instance.
|
| |
| void | Push (T &&element) |
| | Forwards the passed element into the SyncQueue instance.
|
| |
| void | Push (const T &element) |
| | Copies the passed element into the SyncQueue instance.
|
| |
template<typename T, typename Container>
class olp::thread::SyncQueue< T, Container >
A thread-safe container adapter.
- Template Parameters
-
| T | The queue item that should be stored inside the buffer. |
| Container | The type of the underlying container that should mimic the API of std::queue that provides the following functions:
empty()
push(T&&)
push(const T&)
front()
pop()
|