1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-05-03 21:23:52 +00:00
This commit is contained in:
gabime 2014-11-24 01:39:51 +02:00
parent 6cda714e4a
commit 7f0434528b
3 changed files with 6 additions and 4 deletions

View File

@ -37,7 +37,8 @@
namespace spdlog namespace spdlog
{ {
namespace sinks { namespace sinks
{
class async_sink; class async_sink;
} }

View File

@ -73,7 +73,8 @@ public:
std::unique_lock<std::mutex> ul(_mutex); std::unique_lock<std::mutex> ul(_mutex);
if (is_full()) if (is_full())
{ {
if (!_item_popped_cond.wait_until(ul, clock::now() + timeout, [this]() { if (!_item_popped_cond.wait_until(ul, clock::now() + timeout, [this]()
{
return !this->is_full(); return !this->is_full();
})) }))
return false; return false;