class EE::System::Mutex¶
Overview¶
Blocks concurrent access to shared resources from multiple threads. More…
#include <mutex.hpp> class Mutex: private EE::NonCopyable { public: // construction ~Mutex(); // methods void lock(); void unlock(); int tryLock(); };
Detailed Documentation¶
Blocks concurrent access to shared resources from multiple threads.
Methods¶
void lock()
Lock the mutex If the mutex is already locked in another thread, this call will block the execution until the mutex is released.
void unlock()
Unlock the mutex.
int tryLock()
Tries to lock de mutex if possible.