| 21 | } |
| 22 | |
| 23 | void Push(const T& element) { |
| 24 | std::unique_lock<std::mutex> lock(_block_mutex); |
| 25 | _full_notify.wait(_block_mutex, [this]() {return this->_block_queue.size() < this->_list_size; }); |
| 26 | _block_queue.push_front(element); |
| 27 | _empty_notify.notify_all(); |
| 28 | } |
| 29 | |
| 30 | void PushFront(const T& element) { |
| 31 | std::unique_lock<std::mutex> lock(_block_mutex); |
nothing calls this directly
no outgoing calls
no test coverage detected