Different platforms implement the wait/sleep behaviour in very different ways. It makes sense to hoist this functionality into the threading API.
I also feel similarly about hardware_concurrecy() implementation. Any thoughts on that?
Differential D29629
[libcxx] Threading support: externalize sleep_for() AbandonedPublic Authored by rmaprath on Feb 7 2017, 4:36 AM.
Revision Contents
Diff 87394 include/__threading_support
src/thread.cpp
|