mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +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
|
// sleep for 20 ms upto 200 ms
|
||||||
if (time_since_op <= milliseconds(200))
|
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
|
// 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
|
// wait for the queue to be empty
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
if (!os::fopen_s(&_fd, fname, mode))
|
if (!os::fopen_s(&_fd, fname, mode))
|
||||||
return;
|
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);
|
throw spdlog_ex("Failed opening file " + os::filename_to_str(_filename) + " for writing", errno);
|
||||||
|
@ -44,7 +44,7 @@ public:
|
|||||||
int retry_count = 0;
|
int retry_count = 0;
|
||||||
while ((ret == -11/*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES))
|
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);
|
ret = __android_log_write(priority, _tag.c_str(), msg_output);
|
||||||
retry_count++;
|
retry_count++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user