mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 17:41:34 +08:00
fix spdlog namespace
This commit is contained in:
parent
a938045135
commit
357a63d914
@ -373,10 +373,10 @@ inline void spdlog::details::async_log_helper::sleep_or_yield(const spdlog::log_
|
||||
|
||||
// sleep for 20 ms upto 200 ms
|
||||
if (time_since_op <= milliseconds(200))
|
||||
return spdlog::details::os::sleep_for_millis(20);
|
||||
return details::os::sleep_for_millis(20);
|
||||
|
||||
// sleep for 500 ms
|
||||
return spdlog::details::os::sleep_for_millis(500);
|
||||
return details::os::sleep_for_millis(500);
|
||||
}
|
||||
|
||||
// wait for the queue to be empty
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
if (!os::fopen_s(&_fd, fname, mode))
|
||||
return;
|
||||
|
||||
spdlog::details::os::sleep_for_millis(open_interval);
|
||||
details::os::sleep_for_millis(open_interval);
|
||||
}
|
||||
|
||||
throw spdlog_ex("Failed opening file " + os::filename_to_str(_filename) + " for writing", errno);
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
int retry_count = 0;
|
||||
while ((ret == -11/*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES))
|
||||
{
|
||||
spdlog::details::os::sleep_for_millis(5);
|
||||
details::os::sleep_for_millis(5);
|
||||
ret = __android_log_write(priority, _tag.c_str(), msg_output);
|
||||
retry_count++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user