aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely.gcc@gmail.com>2011-05-25 23:49:11 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2011-05-26 00:49:11 +0100
commite06745c110f4fb0622a0eeb2ce299f6ad9ca22e2 (patch)
tree07fa015ab531bb9c9f830af65d73070d31873ce2 /libstdc++-v3/include/std
parente1cb95bc70e70b24c03216c6bda60a09f5d96ea1 (diff)
downloadgcc-e06745c110f4fb0622a0eeb2ce299f6ad9ca22e2.zip
gcc-e06745c110f4fb0622a0eeb2ce299f6ad9ca22e2.tar.gz
gcc-e06745c110f4fb0622a0eeb2ce299f6ad9ca22e2.tar.bz2
mutex: Add doxygen comments.
2011-05-26 Jonathan Wakely <jwakely.gcc@gmail.com> * include/std/mutex: Add doxygen comments. From-SVN: r174244
Diffstat (limited to 'libstdc++-v3/include/std')
-rw-r--r--libstdc++-v3/include/std/mutex4
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex
index de16cd3..2ba9576 100644
--- a/libstdc++-v3/include/std/mutex
+++ b/libstdc++-v3/include/std/mutex
@@ -632,6 +632,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
bool _M_owns; // XXX use atomic_bool
};
+ /// Partial specialization for unique_lock objects.
template<typename _Mutex>
inline void
swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept
@@ -759,9 +760,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__native_type _M_once;
public:
+ /// Constructor
constexpr once_flag() noexcept : _M_once(__GTHREAD_ONCE_INIT) { }
+ /// Deleted copy constructor
once_flag(const once_flag&) = delete;
+ /// Deleted assignment operator
once_flag& operator=(const once_flag&) = delete;
template<typename _Callable, typename... _Args>