From 307bbdc951fa5ea59a4fa3512a24d061d76ddea3 Mon Sep 17 00:00:00 2001
From: Beman Dawes Introduction The mutex, try_mutex and timed_mutex classes define full featured
mutex models. These type should be used to synchronize access to
shared resources when recursive locking mechanics need not be employed. Each type adds another
@@ -43,18 +56,16 @@ not defined.
+
+Header
+Class mutex Synopsis
+Class mutex Members
+Class try_mutex Synopsis
+Class try_mutex Members
+Class timed_mutex Synopsis
+Class timed_mutex Members
+ExampleIntroduction
+
#include <boost/thread/mutex.hpp>-
- class mutex : private boost::noncopyable
+ class mutex : private boost::noncopyable
{
public:
typedef boost::basic_lock<mutex> lock;
@@ -64,7 +75,11 @@ the lock in a random order, though the specific behavior for a given platform ma
};
-Constructs a mutex.
+
~mutex();
-Destructs a mutex.
+Destroys *this.
class try_mutex : private boost::noncopyable
@@ -96,7 +117,9 @@ the lock in a random order, though the specific behavior for a given platform ma
};
-Constructs a try_mutex.
+
~try_mutex();
-Destructs a try_mutex.
+Destroys *this.
class timed_mutex : private boost::noncopyable
@@ -129,7 +158,9 @@ the lock in a random order, though the specific behavior for a given platform ma
};
-Constructs a timed_mutex.
+
~timed_mutex();
-Destructs a mutex.
+Destroys *this.
#include <boost/thread/mutex.hpp> @@ -203,6 +238,9 @@ count == 4
+Revised 25 July, 2001 +
+Copyright William E. Kempf 2001 all rights reserved.