| 151 | class ThreadSafeQueue { |
| 152 | public: |
| 153 | bool push(T const &value) { |
| 154 | std::unique_lock<std::mutex> lock(this->mutex); |
| 155 | this->q.push(value); |
| 156 | return true; |
| 157 | } |
| 158 | |
| 159 | // deletes the retrieved element, do not use for non integral types |
| 160 | bool pop(T &v) { |
no outgoing calls
no test coverage detected