[llvm-branch-commits] [libcxx] e2279c2 - [libc++] [docs] Mark P1865 as complete since 11.0 as it was implemented together with P1135. Fix synopses in <barrier> and <latch>.

Marek Kurdej via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Dec 6 06:48:52 PST 2020


Author: Marek Kurdej
Date: 2020-12-06T15:36:52+01:00
New Revision: e2279c2350b83650a858a541ff566eccd69d38ef

URL: https://github.com/llvm/llvm-project/commit/e2279c2350b83650a858a541ff566eccd69d38ef
DIFF: https://github.com/llvm/llvm-project/commit/e2279c2350b83650a858a541ff566eccd69d38ef.diff

LOG: [libc++] [docs] Mark P1865 as complete since 11.0 as it was implemented together with P1135. Fix synopses in <barrier> and <latch>.

It was implemented in commit 54fa9ecd3088508b05b0c5b5cb52da8a3c188655 ([libc++] Implementation of C++20's P1135R6 for libcxx).

Added: 
    

Modified: 
    libcxx/docs/Cxx2aStatusPaperStatus.csv
    libcxx/include/barrier
    libcxx/include/latch

Removed: 
    


################################################################################
diff  --git a/libcxx/docs/Cxx2aStatusPaperStatus.csv b/libcxx/docs/Cxx2aStatusPaperStatus.csv
index 3e027327b6ae..4efad23981cf 100644
--- a/libcxx/docs/Cxx2aStatusPaperStatus.csv
+++ b/libcxx/docs/Cxx2aStatusPaperStatus.csv
@@ -110,7 +110,7 @@
 "`P1004 <https://wg21.link/P1004>`__","LWG","Making std::vector constexpr","Cologne","",""
 "`P1035 <https://wg21.link/P1035>`__","LWG","Input Range Adaptors","Cologne","",""
 "`P1065 <https://wg21.link/P1065>`__","LWG","Constexpr INVOKE","Cologne","",""
-"`P1135 <https://wg21.link/P1135>`__","LWG","The C++20 Synchronization Library","Cologne","|Complete|",""
+"`P1135 <https://wg21.link/P1135>`__","LWG","The C++20 Synchronization Library","Cologne","|Complete|","11.0"
 "`P1207 <https://wg21.link/P1207>`__","LWG","Movability of Single-pass Iterators","Cologne","",""
 "`P1208 <https://wg21.link/P1208>`__","LWG","Adopt source_location for C++20","Cologne","",""
 "`P1355 <https://wg21.link/P1355>`__","LWG","Exposing a narrow contract for ceil2","Cologne","|Complete|","9.0"
@@ -151,7 +151,7 @@
 "`P1723 <https://wg21.link/P1723>`__","LWG","Mandating the Standard Library: Clause 31 - Atomics library","Belfast","* *",""
 "`P1855 <https://wg21.link/P1855>`__","LWG","Make ``<compare>``\  freestanding","Belfast","* *",""
 "`P1862 <https://wg21.link/P1862>`__","LWG","Ranges adaptors for non-copyable iterators","Belfast","* *",""
-"`P1865 <https://wg21.link/P1865>`__","LWG","Add max() to latch and barrier","Belfast","* *",""
+"`P1865 <https://wg21.link/P1865>`__","LWG","Add max() to latch and barrier","Belfast","|Complete|","11.0"
 "`P1869 <https://wg21.link/P1869>`__","LWG","Rename 'condition_variable_any' interruptible wait methods","Belfast","* *",""
 "`P1870 <https://wg21.link/P1870>`__","LWG","forwarding-range is too subtle","Belfast","* *",""
 "`P1871 <https://wg21.link/P1871>`__","LWG","Should concepts be enabled or disabled?","Belfast","* *",""

diff  --git a/libcxx/include/barrier b/libcxx/include/barrier
index ba9e8ea9bb84..be213a6895ef 100644
--- a/libcxx/include/barrier
+++ b/libcxx/include/barrier
@@ -22,6 +22,8 @@ namespace std
   public:
     using arrival_token = see below;
 
+    static constexpr ptr
diff _t max() noexcept;
+
     constexpr explicit barrier(ptr
diff _t phase_count,
                                CompletionFunction f = CompletionFunction());
     ~barrier();

diff  --git a/libcxx/include/latch b/libcxx/include/latch
index b338f091316c..a894f8cafd1c 100644
--- a/libcxx/include/latch
+++ b/libcxx/include/latch
@@ -19,6 +19,8 @@ namespace std
   class latch
   {
   public:
+    static constexpr ptr
diff _t max() noexcept;
+
     constexpr explicit latch(ptr
diff _t __expected);
     ~latch();
 


        


More information about the llvm-branch-commits mailing list