Fabcoin Core
0.16.2
P2P Digital Currency
|
Concurrent queue. More...
#include <concurrent_queue.h>
Public Member Functions | |
template<typename _U > | |
void | push (_U &&_elem) |
_T | pop () |
Private Attributes | |
_QueueT | m_queue |
std::mutex | x_mutex |
std::condition_variable | m_cv |
Concurrent queue.
You can push and pop elements to/from the queue. Pop will block until the queue is not empty. The default backend (_QueueT) is std::queue. It can be changed to any type that has proper push(), pop(), empty() and front() methods.
Definition at line 32 of file concurrent_queue.h.
|
inline |
Definition at line 45 of file concurrent_queue.h.
|
inline |
Definition at line 36 of file concurrent_queue.h.
|
private |
Definition at line 57 of file concurrent_queue.h.
|
private |
Definition at line 55 of file concurrent_queue.h.
|
private |
Definition at line 56 of file concurrent_queue.h.