#include <cpp-terminal/private/blocking_queue.hpp>
Definition at line 24 of file blocking_queue.hpp.
◆ ~BlockingQueue()
Term::Private::BlockingQueue::~BlockingQueue |
( |
| ) |
|
|
default |
◆ BlockingQueue() [1/3]
Term::Private::BlockingQueue::BlockingQueue |
( |
| ) |
|
|
default |
◆ BlockingQueue() [2/3]
Term::Private::BlockingQueue::BlockingQueue |
( |
const BlockingQueue & | other | ) |
|
|
delete |
◆ BlockingQueue() [3/3]
Term::Private::BlockingQueue::BlockingQueue |
( |
BlockingQueue && | other | ) |
|
|
delete |
◆ empty()
bool Term::Private::BlockingQueue::empty |
( |
| ) |
|
Definition at line 40 of file blocking_queue.cpp.
41{
42 const std::lock_guard<std::mutex> lock(
m_mutex);
44}
std::queue< Term::Event > m_queue
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pop()
◆ push() [1/2]
void Term::Private::BlockingQueue::push |
( |
const Term::Event && | value, |
|
|
const std::size_t & | occurrence = 1 ) |
Definition at line 30 of file blocking_queue.cpp.
31{
32 for(std::size_t i = 0; i != occurrence; ++i)
33 {
34 const std::lock_guard<std::mutex> lock(
m_mutex);
37 }
38}
std::condition_variable m_cv
◆ push() [2/2]
void Term::Private::BlockingQueue::push |
( |
const Term::Event & | value, |
|
|
const std::size_t & | occurrence = 1 ) |
Definition at line 20 of file blocking_queue.cpp.
21{
22 for(std::size_t i = 0; i != occurrence; ++i)
23 {
24 const std::lock_guard<std::mutex> lock(
m_mutex);
27 }
28}
◆ size()
std::size_t Term::Private::BlockingQueue::size |
( |
| ) |
|
◆ wait_for_events()
void Term::Private::BlockingQueue::wait_for_events |
( |
std::unique_lock< std::mutex > & | lock | ) |
|
◆ m_cv
std::condition_variable Term::Private::BlockingQueue::m_cv |
|
private |
◆ m_mutex
std::mutex Term::Private::BlockingQueue::m_mutex |
|
private |
◆ m_queue
std::queue<Term::Event> Term::Private::BlockingQueue::m_queue |
|
private |
The documentation for this class was generated from the following files: