1#ifndef XF_INTERFACE_MUTEX_H
2#define XF_INTERFACE_MUTEX_H
32 virtual bool tryLock(int32_t timeout = 0) = 0;
Mutex interface needed by the XF to access a mutex.
Definition: mutex.h:18
virtual void unlock()=0
Releases the mutex so it can be taken by other threads.
virtual void lock()=0
Blocks until the mutex becomes available.
static XFMutex * create()
Creates and returns a new mutex instance.
Definition: mutex.cpp:11
virtual bool tryLock(int32_t timeout=0)=0
Tries to get the mutex.