projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use std::this_thread::yield rather than sched_yield
[folly.git]
/
folly
/
io
/
async
/
EventBase.cpp
diff --git
a/folly/io/async/EventBase.cpp
b/folly/io/async/EventBase.cpp
index a493d928e29d08f7ebce4cb878d52f5135b39e0c..941cdeec5defb889380b8e800176ded035da00cd 100644
(file)
--- a/
folly/io/async/EventBase.cpp
+++ b/
folly/io/async/EventBase.cpp
@@
-27,6
+27,7
@@
#include <condition_variable>
#include <fcntl.h>
#include <mutex>
#include <condition_variable>
#include <fcntl.h>
#include <mutex>
+#include <thread>
namespace folly {
namespace folly {
@@
-231,7
+232,7
@@
getTimeDelta(std::chrono::steady_clock::time_point* prev) {
void EventBase::waitUntilRunning() {
while (!isRunning()) {
void EventBase::waitUntilRunning() {
while (!isRunning()) {
- s
ched_
yield();
+ s
td::this_thread::
yield();
}
}
}
}