#include <AbortableMutex.h>
Public Member Functions | |
nonvirtual void | lock () |
This is equivalent to std::mutex, except that when a thread is blocked in a lock() call it can still be interrupted by Thread::Abort ().
This is not generally necessary for quick mutexes, but for any mutex use where you could block/lock for an extended time, it makes sense to use this instead. This is completely compatible with std::mutex otherwise, and can be used with std::lock_guard<> etc.
Definition at line 61 of file AbortableMutex.h.
void AbortableMutex::lock | ( | ) |
Definition at line 19 of file AbortableMutex.cpp.