libstdc++: Fix definition of std::nostopstate object
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Nov 2019 14:38:59 +0000 (14:38 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 15 Nov 2019 14:38:59 +0000 (14:38 +0000)
commita0e1dcd44f9c0ee22f56b73660f36072633adb69
tree299841c9a1488666a529f2af88e0ff24b4bcaaa4
parentf31e515fd519fe6ec3dc0b5cf5b1388fd1373ba4
libstdc++: Fix definition of std::nostopstate object

Also add <stop_token> header to PCH and Doxygen config.

* doc/doxygen/user.cfg.in: Add <stop_token>.
* include/precompiled/stdc++.h: Likewise.
* include/std/stop_token: Fix definition of std::nostopstate.
* testsuite/30_threads/headers/stop_token/synopsis.cc: New test.
* testsuite/30_threads/headers/thread/types_std_c++20.cc: New test.
* testsuite/30_threads/stop_token/stop_source.cc: New test.
* testsuite/30_threads/stop_token/stop_token.cc: Remove unnecessary
dg-require directives. Remove I/O and inclusion of <iostream>.

From-SVN: r278296
libstdc++-v3/ChangeLog
libstdc++-v3/doc/doxygen/user.cfg.in
libstdc++-v3/include/precompiled/stdc++.h
libstdc++-v3/include/std/stop_token
libstdc++-v3/testsuite/30_threads/headers/stop_token/synopsis.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/headers/thread/types_std_c++20.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc