diff options
| author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-05 13:33:29 +0000 |
|---|---|---|
| committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-05 13:33:29 +0000 |
| commit | 5cebcec734bb0881877f4ad700e4a219f6bfc063 (patch) | |
| tree | ff08e3cee2ee6418c3256c5998dc02b6f5a21ab7 /libstdc++-v3/include/std/mutex | |
| parent | 24c33936ca70b75623bc68bf0abe4aed4a9ac5b7 (diff) | |
| download | ppe42-gcc-5cebcec734bb0881877f4ad700e4a219f6bfc063.tar.gz ppe42-gcc-5cebcec734bb0881877f4ad700e4a219f6bfc063.zip | |
PR libstdc++/49894
PR bootstrap/50982
* include/std/mutex (once_flag): Use NSDMI.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181013 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/mutex')
| -rw-r--r-- | libstdc++-v3/include/std/mutex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex index 4d154ff6f0c..321a332e548 100644 --- a/libstdc++-v3/include/std/mutex +++ b/libstdc++-v3/include/std/mutex @@ -760,11 +760,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { private: typedef __gthread_once_t __native_type; - __native_type _M_once; + __native_type _M_once = __GTHREAD_ONCE_INIT; public: /// Constructor - constexpr once_flag() noexcept : _M_once(__GTHREAD_ONCE_INIT) { } + constexpr once_flag() noexcept = default; /// Deleted copy constructor once_flag(const once_flag&) = delete; |

