[PATCH] D29818: [libcxx] Threading support: Attempt to externalize system_clock::now() and steady_clock::now() implementations

Asiri Rathnayake via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 10 04:15:16 PST 2017


rmaprath created this revision.

These implementations depend heavily on the underlying platform. It would be good to put them behind a porting function within the threading API as quite a bit of threading functionality depend on the clocks.

The `steady_clock::now()` implementation was difficult to pluck out for `__APPLE__` because it uses some static functions within the library sources.

I have tested these changes on linux, I will test them on Windows and Mac before committing (if this gets approved).


https://reviews.llvm.org/D29818

Files:
  include/__threading_support
  src/chrono.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29818.87975.patch
Type: text/x-patch
Size: 10247 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170210/10ee56b7/attachment.bin>


More information about the cfe-commits mailing list