Add std::scoped_lock for C++17
commitee3fb468b767412a0786a2b64c81515f84e3dd69
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Mar 2017 18:38:35 +0000 (5 18:38 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Mar 2017 18:38:35 +0000 (5 18:38 +0000)
treea3d7288f3ed77f2935a5140ef1f8c0f45a0d5539
parentcf1bf3ab0b3aa740aa4554a812457c04772e0e98
Add std::scoped_lock for C++17

* doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
* doc/html/*: Regenerate.
* include/std/mutex (scoped_lock): Implement new C++17 template.
* testsuite/30_threads/scoped_lock/cons/1.cc: New test.
* testsuite/30_threads/scoped_lock/requirements/
explicit_instantiation.cc: New test.
* testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245903 138bc75d-0d04-0410-961f-82ee72b054a4
16 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/doc/html/manual/debug.html
libstdc++-v3/doc/html/manual/debug_mode_design.html
libstdc++-v3/doc/html/manual/documentation_hacking.html
libstdc++-v3/doc/html/manual/fstreams.html
libstdc++-v3/doc/html/manual/memory.html
libstdc++-v3/doc/html/manual/policy_data_structures.html
libstdc++-v3/doc/html/manual/policy_data_structures_ack.html
libstdc++-v3/doc/html/manual/profile_mode.html
libstdc++-v3/doc/html/manual/profile_mode_design.html
libstdc++-v3/doc/html/manual/status.html
libstdc++-v3/doc/xml/manual/status_cxx2017.xml
libstdc++-v3/include/std/mutex
libstdc++-v3/testsuite/30_threads/scoped_lock/cons/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/scoped_lock/requirements/explicit_instantiation.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/scoped_lock/requirements/typedefs.cc [new file with mode: 0644]