Csound API
6.18
|
A thread-safe queue, or first-in first-out (FIFO) queue, implemented using only the standard C++11 library. More...
#include <csound_threaded.hpp>
Public Member Functions | |
void | push (Data const &data) |
bool | empty () const |
bool | try_pop (Data &popped_value) |
void | wait_and_pop (Data &popped_value) |
Private Attributes | |
std::queue< Data > | queue_ |
std::mutex | mutex_ |
std::condition_variable | condition_variable_ |
A thread-safe queue, or first-in first-out (FIFO) queue, implemented using only the standard C++11 library.
The Data should be a simple type, such as a pointer.
|
inline |
|
inline |
Referenced by CsoundThreaded::InputMessage(), CsoundThreaded::ReadScore(), and CsoundThreaded::ScoreEvent().
|
inline |
|
inline |
|
private |
|
private |
|
private |