Support for jthread and stop_token

Programming / Compilers / GCC - rodgertq [138bc75d-0d04-0410-961f-82ee72b054a4] - 15 November 2019 03:09 EST

- include/Makefile.am: Add 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.

acf32f99a53 Support for jthread and stop_token
libstdc++-v3/ChangeLog | 19 ++
libstdc++-v3/include/Makefile.am | 1 +
libstdc++-v3/include/Makefile.in | 1 +
libstdc++-v3/include/std/condition_variable | 84 +++++
libstdc++-v3/include/std/stop_token | 370 +++++++++++++++++++++
libstdc++-v3/include/std/thread | 125 +++++++
libstdc++-v3/include/std/version | 1 +
.../condition_variable_any/stop_token/1.cc | 27 ++
.../condition_variable_any/stop_token/2.cc | 27 ++
.../condition_variable_any/stop_token/wait_on.cc | 136 ++++++++
libstdc++-v3/testsuite/30_threads/jthread/1.cc | 27 ++
libstdc++-v3/testsuite/30_threads/jthread/2.cc | 27 ++
.../testsuite/30_threads/jthread/jthread.cc | 198 +++++++++++
libstdc++-v3/testsuite/30_threads/stop_token/1.cc | 27 ++
libstdc++-v3/testsuite/30_threads/stop_token/2.cc | 27 ++
.../testsuite/30_threads/stop_token/stop_token.cc | 100 ++++++
16 files changed, 1197 insertions(+)

Upstream: gcc.gnu.org


  • Share