#include <concurrency.hpp>
Public Member Functions | |
void | clear () |
T | dequeue () |
void | enqueue (T item) |
single_consumer_queue () | |
size_t | size () |
bool | try_dequeue (T *item) |
Private Attributes | |
std::condition_variable | cv |
std::mutex | mutex |
std::queue< T > | q |
Definition at line 11 of file concurrency.hpp.
|
inline |
Definition at line 18 of file concurrency.hpp.
|
inline |
Definition at line 51 of file concurrency.hpp.
|
inline |
Definition at line 28 of file concurrency.hpp.
|
inline |
Definition at line 20 of file concurrency.hpp.
|
inline |
Definition at line 64 of file concurrency.hpp.
|
inline |
Definition at line 38 of file concurrency.hpp.
|
private |
Definition at line 15 of file concurrency.hpp.
|
private |
Definition at line 14 of file concurrency.hpp.
|
private |
Definition at line 13 of file concurrency.hpp.