class EE::System::Mutex¶
Overview¶
Blocks concurrent access to shared resources from multiple threads. This class is being kept for historical reasons. More…
#include <mutex.hpp> class Mutex: private EE::NonCopyable { public: // methods void lock(); void unlock(); bool tryLock(); };
Detailed Documentation¶
Blocks concurrent access to shared resources from multiple threads. This class is being kept for historical reasons.
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.
bool tryLock()
Tries to lock de mutex if possible.