Lines Matching refs:mutex
395 * Automatically unlocks a mutex on construction and locks it on destruction.
398 * when a mutex, which is locked for a period of time, needs to be
401 * wxMutexLocker lock(mutex);
403 * // ... do stuff that requires that the mutex is locked ...
406 * CMutexUnlocker unlocker(mutex);
407 * // ... do stuff that requires that the mutex is unlocked ...
410 * // ... do more stuff that requires that the mutex is locked ...
416 // unlock the mutex in the ctor
417 CMutexUnlocker(wxMutex& mutex)
418 : m_isOk(false), m_mutex(mutex)
421 // returns true if mutex was successfully unlocked in ctor
425 // lock the mutex in dtor