24 if(
handle && platform && platform->getThread())
25 platform->getThread()->lockMutex(
handle);
30 if(
handle && platform && platform->getThread())
31 platform->getThread()->unlockMutex(
handle);
void unlock()
Releases the mutex. Must be called by the thread that locked it.
void * handle
Backend-assigned mutex handle.
void lock()
Blocks until the mutex is acquired. Not recursive: locking twice from one thread deadlocks.
virtual void * createMutex()=0
Creates an unlocked mutex.
virtual void destroyMutex(void *mutex)=0
Destroys a mutex created by createMutex(). It must not be locked.