ThreadSafeQueue
less than a minute
ThreadSafeQueue
Public Functions
Name | |
---|---|
ThreadSafeQueue() =default | |
void | push(T new_value) |
void | waitAndPop(T & value) |
std::shared_ptr< T > | waitAndPop() |
bool | tryPop(T & value) |
std::shared_ptr< T > | tryPop() |
bool | empty() const |
void | destroy() |
Detailed Description
template <typename T >
class ThreadSafeQueue;
Public Functions Documentation
function ThreadSafeQueue
ThreadSafeQueue() =default
function push
inline void push(
T new_value
)
function waitAndPop
inline void waitAndPop(
T & value
)
function waitAndPop
inline std::shared_ptr< T > waitAndPop()
function tryPop
inline bool tryPop(
T & value
)
function tryPop
inline std::shared_ptr< T > tryPop()
function empty
inline bool empty() const
function destroy
inline void destroy()
Updated on 2022-04-05 at 16:21:26 +0200