summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/std/mutex
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-09 23:54:07 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-09 23:54:07 +0000
commit1e49613638a43713b2e1113ee89922fc6cc08858 (patch)
treecbebc0c0bb8317e87a6ab55453980b226a4e1c0c /libstdc++-v3/include/std/mutex
parentfe9c9e23e0abf057ead745de1412855c5addcdef (diff)
downloadppe42-gcc-1e49613638a43713b2e1113ee89922fc6cc08858.tar.gz
ppe42-gcc-1e49613638a43713b2e1113ee89922fc6cc08858.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199875 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/mutex')
-rw-r--r--libstdc++-v3/include/std/mutex2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex
index 3c666c19e50..cdd05a37cbe 100644
--- a/libstdc++-v3/include/std/mutex
+++ b/libstdc++-v3/include/std/mutex
@@ -783,7 +783,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__set_once_functor_lock_ptr(&__functor_lock);
#endif
- int __e = __gthread_once(&(__once._M_once), &__once_proxy);
+ int __e = __gthread_once(&__once._M_once, &__once_proxy);
#ifndef _GLIBCXX_HAVE_TLS
if (__functor_lock)
OpenPOWER on IntegriCloud