Support for jthread and stop_token
authorThomas Rodgers <trodgers@redhat.com>
Fri, 15 Nov 2019 03:09:19 +0000 (03:09 +0000)
committerThomas Rodgers <rodgertq@gcc.gnu.org>
Fri, 15 Nov 2019 03:09:19 +0000 (03:09 +0000)
commit942c4b32b0553378f843e606bb56c417acbdc4be
tree41fec04827f82dc4850fc993c2d0958d8a12fb02
parentf8aea5e37d12e09fef68b854a190f71d6b39e11f
Support for jthread and stop_token

        * include/Makefile.am: Add <stop_token> header.
        * include/Makefile.in: Regenerate.
        * include/std/condition_variable: Add overloads for stop_token support
        to condition_variable_any.
        * include/std/stop_token: New file.
        * include/std/thread: Add jthread type.
        * include/std/version (__cpp_lib_jthread): New value.
        * testsuite/30_threads/condition_variable_any/stop_token/1.cc: New test.
        * testsuite/30_threads/condition_variable_any/stop_token/2.cc: New test.
        * testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc: New test.
        * testsuite/30_threads/jthread/1.cc: New test.
        * testsuite/30_threads/jthread/2.cc: New test.
        * testsuite/30_threads/jthread/jthread.cc: New test.
        * testsuite/30_threads/stop_token/1.cc: New test.
        * testsuite/30_threads/stop_token/2.cc: New test.
        * testsuite/30_threads/stop_token/stop_token.cc: New test.

From-SVN: r278274
16 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/std/condition_variable
libstdc++-v3/include/std/stop_token [new file with mode: 0644]
libstdc++-v3/include/std/thread
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/jthread/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/jthread/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/jthread/jthread.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/stop_token/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/stop_token/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc [new file with mode: 0644]