git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55466
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
public:
/**
Constructs a wxMutexLocker object associated with mutex and locks it.
public:
/**
Constructs a wxMutexLocker object associated with mutex and locks it.
- Call @ref IsOk() IsLocked to check if the mutex was
- successfully locked.
+ Call IsOk() to check if the mutex was successfully locked.
*/
wxMutexLocker(wxMutex& mutex);
*/
wxMutexLocker(wxMutex& mutex);
Locks the mutex object. This is equivalent to
LockTimeout() with infinite timeout.
Locks the mutex object. This is equivalent to
LockTimeout() with infinite timeout.
+ @return One of: @c wxMUTEX_NO_ERROR, @c wxMUTEX_DEAD_LOCK.
*/
wxMutexError Lock();
/**
Try to lock the mutex object during the specified time interval.
*/
wxMutexError Lock();
/**
Try to lock the mutex object during the specified time interval.
+ @return One of: @c wxMUTEX_NO_ERROR, @c wxMUTEX_DEAD_LOCK, @c wxMUTEX_TIMEOUT.
*/
wxMutexError LockTimeout(unsigned long msec);
/**
Tries to lock the mutex object. If it can't, returns immediately with an error.
*/
wxMutexError LockTimeout(unsigned long msec);
/**
Tries to lock the mutex object. If it can't, returns immediately with an error.
+ @return One of: @c wxMUTEX_NO_ERROR, @c wxMUTEX_BUSY.
*/
wxMutexError TryLock();
/**
Unlocks the mutex object.
*/
wxMutexError TryLock();
/**
Unlocks the mutex object.
+ @return One of: @c wxMUTEX_NO_ERROR, @c wxMUTEX_UNLOCKED.
*/
wxMutexError Unlock();
};
*/
wxMutexError Unlock();
};