mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Fully qualified std::this_thread::yield()
This commit is contained in:
parent
9ccb6af2bd
commit
e9fc4ac095
@ -359,7 +359,7 @@ inline void spdlog::details::async_log_helper::sleep_or_yield(const spdlog::log_
|
||||
|
||||
// yield upto 150 micros
|
||||
if (time_since_op <= microseconds(100))
|
||||
return yield();
|
||||
return std::this_thread::yield();
|
||||
|
||||
|
||||
// sleep for 20 ms upto 200 ms
|
||||
|
Loading…
Reference in New Issue
Block a user