class Mutex
{
+ /// noncopyable
+ Mutex(const Mutex&);
+ Mutex& operator=(const Mutex&);
public:
Mutex();
~Mutex();
-
+
/// Scope based locking:
/// Usage:
/// >>> unlocked
- /// {
- /// Mutex::Locker locker(a_Mutex_ptr);
+ /// {
+ /// Mutex::Locker locker(a_Mutex_ptr);
/// >>> locked
/// }
/// >>> unlocked
Locker& operator=(const Locker& rhs);
Mutex* mutex_;
};
-
-
- // pseude-value semantic
- // needed by GuiPrefs which makes a copy
- Mutex(const Mutex&);
- Mutex& operator=(const Mutex&);
private:
struct Private;