[PATCH] Add c++2a binary_semaphore

Thomas Rodgers trodgers@redhat.com
Tue Feb 18 06:46:00 GMT 2020


This patch adds the c++2a semaphore header and binary_semaphore type. The implementation is not complete, this patch is just to solicit initial feedback.

        * include/std/semaphore: New file.
	* include/std/version (__cpp_lib_semaphore): Add feature test macro.
	* include/Makefile.am (std_headers): add semaphore.
	* include/Makefile.in: Regenerate.
	* testsuite/30_threads/semaphore/1.cc: New test.
	* testsuite/30_threads/semaphore/2.cc: New test.
	* testsuite/30_threads/semaphore/binary_semaphore.cc: New test.
	* testsuite/30_threads/semaphore/try_acquire.cc: New test.
	* testsuite/30_threads/semaphore/try_acquire_for.cc: New test.
	* testsuite/30_threads/semaphore/try_acquire_until.cc: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-c-2a-binary_semaphore.patch
Type: text/x-patch
Size: 17351 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20200218/b250e125/attachment.bin>


More information about the Gcc-patches mailing list