[all-commits] [llvm/llvm-project] 41e766: [libc++] Implement `operator<=>` for `thread::id`
Adrian Vogelsgesang via All-commits
all-commits at lists.llvm.org
Sat Aug 13 17:31:19 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 41e7665c4b8ed47d1802b1dc8a41be3eacf805ad
https://github.com/llvm/llvm-project/commit/41e7665c4b8ed47d1802b1dc8a41be3eacf805ad
Author: Adrian Vogelsgesang <avogelsgesang at tableau.com>
Date: 2022-08-13 (Sat, 13 Aug 2022)
Changed paths:
M libcxx/docs/Status/SpaceshipProjects.csv
M libcxx/include/__threading_support
M libcxx/include/thread
A libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/cmp.pass.cpp
R libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/eq.pass.cpp
R libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp
Log Message:
-----------
[libc++] Implement `operator<=>` for `thread::id`
The new operator<=> is mapped onto the existing functions
__libcpp_thread_id_equal and __libcpp_thread_id_less. Introducing a
new __libcpp_thread_id_compare_three_way might lead to more efficient
code. Given that we can still introduce __libcpp_thread_id_compare_three_way
later, for this commit I opted to not break ABI. If requested, I will
add __libcpp_thread_id_compare_three_way in a follow-up commit.
Implements part of P1614R2 "The Mothership has Landed"
Differential Revision: https://reviews.llvm.org/D131362
More information about the All-commits
mailing list