#ifndef MSP_CORE_MUTEX_H_
#define MSP_CORE_MUTEX_H_
+#include "noncopyable.h"
#include "refptr.h"
namespace Msp {
A class for controlling mutually exclusive access to a resource. Only one
thread can hold a lock on the mutex at a time.
*/
-class Mutex
+class Mutex: private NonCopyable
{
friend class Semaphore;
Private *priv;
- Mutex(const Mutex &);
- Mutex &operator=(const Mutex &);
public:
Mutex();
~Mutex();