mutex (call_once): Remove parentheses to fix error in c++1y and gnu++1y mode.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sun, 9 Jun 2013 23:54:07 +0000 (23:54 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 9 Jun 2013 23:54:07 +0000 (00:54 +0100)
commitbd24ec2de08152666d95813a156007efff294bad
treecbebc0c0bb8317e87a6ab55453980b226a4e1c0c
parent0d00888247bcfe39791153f9aa1fd8734f58bc74
mutex (call_once): Remove parentheses to fix error in c++1y and gnu++1y mode.

* include/std/mutex (call_once): Remove parentheses to fix error in
c++1y and gnu++1y mode.
* testsuite/30_threads/mutex/try_lock/2.cc: Call try_lock() in new
thread to avoid undefined behaviour.

From-SVN: r199875
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/mutex
libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc