| 20 | } |
| 21 | |
| 22 | void push(T const& value) |
| 23 | { |
| 24 | { |
| 25 | std::unique_lock<std::mutex> lock(m_mutex); |
| 26 | m_cvNotFull.wait(lock, [=] { return m_queue.size() < m_maxElem; }); |
| 27 | m_queue.push_front(value); |
| 28 | } |
| 29 | |
| 30 | this->m_cvNotEmpty.notify_one(); |
| 31 | } |
| 32 | |
| 33 | T pop() |
| 34 | { |
no test coverage detected