Disable copy on Mutex, it is not possible to copy a mutex
This commit is contained in:
parent
8328d2b609
commit
b717a62e81
1 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
//
|
||||
// C++ Interface: Thread
|
||||
//
|
||||
// Description:
|
||||
// Description:
|
||||
//
|
||||
//
|
||||
// Author: Micke Prag <micke.prag@telldus.se>, (C) 2010
|
||||
|
@ -17,11 +17,13 @@ namespace TelldusCore {
|
|||
public:
|
||||
Mutex();
|
||||
virtual ~Mutex();
|
||||
|
||||
|
||||
virtual void lock();
|
||||
virtual void unlock();
|
||||
|
||||
|
||||
private:
|
||||
Mutex(const Mutex&); //Disable copy
|
||||
Mutex& operator = (const Mutex&);
|
||||
class PrivateData;
|
||||
PrivateData *d;
|
||||
};
|
||||
|
@ -30,7 +32,7 @@ namespace TelldusCore {
|
|||
void lock();
|
||||
void unlock();
|
||||
};
|
||||
|
||||
|
||||
class MutexLocker {
|
||||
public:
|
||||
MutexLocker(Mutex *m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue