[libcxx-commits] [PATCH] D116944: [libc++] Split a few utilities out of __threading_support

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 10 07:26:53 PST 2022


ldionne created this revision.
Herald added a subscriber: mgorny.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This change is the basis for a further refactoring where I'm going to
split up the various implementations we have in __threading_support to
make that code easier to understand.

Note that I had to make __convert_to_timespec a template to break
circular dependencies. Concretely, we never seem to use it with anything
other than ::timespec, but I am wary of hardcoding that assumption as
part of this change, since I suspect there's a reason for going through
these hoops in the first place.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116944

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/__thread/convert_to_timespec.h
  libcxx/include/__thread/timed_backoff_policy.h
  libcxx/include/__threading_support
  libcxx/include/atomic
  libcxx/include/barrier
  libcxx/include/module.modulemap
  libcxx/include/semaphore
  libcxx/src/atomic.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116944.398634.patch
Type: text/x-patch
Size: 8607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220110/3710c3ec/attachment-0001.bin>


More information about the libcxx-commits mailing list