Checks if the queue is empty
| 59 | |
| 60 | // Checks if the queue is empty |
| 61 | bool Empty() const { |
| 62 | std::unique_lock<std::mutex> lock(mutex_); |
| 63 | return queue_.empty(); |
| 64 | } |
| 65 | |
| 66 | // Returns a reference to the next element in the queue. Must be called on a non-empty |
| 67 | // queue |