Use std::this_thread::yield rather than sched_yield
authorChristopher Dykes <cdykes@fb.com>
Thu, 16 Feb 2017 21:08:47 +0000 (13:08 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 16 Feb 2017 21:20:02 +0000 (13:20 -0800)
commit79b78eaaf88ead9fa6543822c193b4e86d0e2395
tree494037258cb7eadcd89f58c2371d3ca88b40dfb1
parenteab7000df62b7b8b2b114fb2a9b75b744506242c
Use std::this_thread::yield rather than sched_yield

Summary: They do the same thing, and the first is portable.

Reviewed By: yfeldblum

Differential Revision: D4569649

fbshipit-source-id: db0434766f674a7789d6e59335e122b4d2131e06
folly/RWSpinLock.h
folly/configure.ac
folly/io/async/EventBase.cpp
folly/test/CacheLocalityBenchmark.cpp
folly/test/SynchronizedTestLib-inl.h