[PATCH] D29630: [libcxx] Threading support: externalize sleep_for()

Asiri Rathnayake via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 7 04:38:17 PST 2017


rmaprath created this revision.

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?


https://reviews.llvm.org/D29630

Files:
  include/__threading_support
  src/thread.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29630.87395.patch
Type: text/x-patch
Size: 3158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170207/691fa0b6/attachment.bin>


More information about the cfe-commits mailing list