added tp->wait_empty()
This commit is contained in:
@@ -139,6 +139,11 @@ public:
|
||||
return msg_counter_.load(std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
void wait_empty()
|
||||
{
|
||||
q_.wait_empty();
|
||||
}
|
||||
|
||||
private:
|
||||
std::atomic<size_t> msg_counter_; // total # of messages processed in this pool
|
||||
q_type q_;
|
||||
|
||||
Reference in New Issue
Block a user