mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
astyle
This commit is contained in:
@@ -37,7 +37,8 @@
|
||||
namespace spdlog
|
||||
{
|
||||
|
||||
namespace sinks {
|
||||
namespace sinks
|
||||
{
|
||||
class async_sink;
|
||||
}
|
||||
|
||||
@@ -57,7 +58,7 @@ protected:
|
||||
void _stop() override;
|
||||
|
||||
private:
|
||||
log_clock::duration _shutdown_duration;
|
||||
log_clock::duration _shutdown_duration;
|
||||
std::unique_ptr<sinks::async_sink> _as;
|
||||
};
|
||||
}
|
||||
|
@@ -73,7 +73,8 @@ public:
|
||||
std::unique_lock<std::mutex> ul(_mutex);
|
||||
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 false;
|
||||
|
Reference in New Issue
Block a user