|
Csound API 6.09
|
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 |
References condition_variable_, mutex_, and queue_.
|
inline |
|
inline |
References condition_variable_, mutex_, and queue_.
|
private |
Referenced by push(), and wait_and_pop().
|
private |
Referenced by empty(), push(), try_pop(), and wait_and_pop().
|
private |
Referenced by empty(), push(), try_pop(), and wait_and_pop().