assignment operators/copy ctors are private for classes which can't be copied
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -81,6 +81,10 @@ public:
|
||||
protected:
|
||||
friend class wxCondition;
|
||||
|
||||
// no assignment operator nor copy ctor
|
||||
wxMutex(const wxMutex&);
|
||||
wxMutex& operator=(const wxMutex&);
|
||||
|
||||
int m_locked;
|
||||
wxMutexInternal *p_internal;
|
||||
};
|
||||
@@ -102,6 +106,10 @@ public:
|
||||
~wxMutexLocker() { if ( IsOk() ) m_mutex->Unlock(); }
|
||||
|
||||
private:
|
||||
// no assignment operator nor copy ctor
|
||||
wxMutexLocker(const wxMutexLocker&);
|
||||
wxMutexLocker& operator=(const wxMutexLocker&);
|
||||
|
||||
bool m_isOk;
|
||||
wxMutex *m_mutex;
|
||||
};
|
||||
@@ -131,6 +139,10 @@ public:
|
||||
void Leave();
|
||||
|
||||
private:
|
||||
// no assignment operator nor copy ctor
|
||||
wxCriticalSection(const wxCriticalSection&);
|
||||
wxCriticalSection& operator=(const wxCriticalSection&);
|
||||
|
||||
wxCriticalSectionInternal *m_critsect;
|
||||
};
|
||||
|
||||
@@ -145,6 +157,10 @@ public:
|
||||
{ m_critsect.Leave(); }
|
||||
|
||||
private:
|
||||
// no assignment operator nor copy ctor
|
||||
wxCriticalSectionLocker(const wxCriticalSectionLocker&);
|
||||
wxCriticalSectionLocker& operator=(const wxCriticalSectionLocker&);
|
||||
|
||||
wxCriticalSection& m_critsect;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user