mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 17:41:34 +08:00
clear fix
This commit is contained in:
parent
bb529a226d
commit
55eebf76f1
@ -97,7 +97,7 @@ public:
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> ul(mutex_);
|
std::unique_lock<std::mutex> ul(mutex_);
|
||||||
q_ = queue_t{};
|
q_.swap(queue_t());
|
||||||
}
|
}
|
||||||
item_popped_cond_.notify_all();
|
item_popped_cond_.notify_all();
|
||||||
}
|
}
|
||||||
|
@ -86,9 +86,7 @@ void testq(int size, int pushers, int poppers)
|
|||||||
|
|
||||||
for(int i = 0; i < pushers; i++)
|
for(int i = 0; i < pushers; i++)
|
||||||
new std::thread(std::bind(pusher, &q));
|
new std::thread(std::bind(pusher, &q));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
while(active)
|
while(active)
|
||||||
{
|
{
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user