116 # include "os/Wnt/OsMutexWnt.h" 118 #elif defined(_VXWORKS) 119 # include "os/Vxw/OsMutexVxw.h" 120 typedef class OsMutexVxw OsMutex;
121 #elif defined(__pingtel_on_posix__) 125 # error Unsupported target platform. 128 #endif // _OsMutex_h_ protect a task that owns the mutex from < unexpected deletion
Definition: OsMutex.h:60
Base class for the synchronization mechanisms in the OS abstraction layer.
Definition: OsSyncBase.h:46
virtual void OsMutexShow(void)=0
Print mutex information to the console.
queue blocked tasks based on their priority
Definition: OsMutex.h:59
queue blocked tasks on a first-in, first-out < basis
Definition: OsMutex.h:57
OsStatus
Definition: OsStatus.h:27
virtual ~OsMutexBase()
Destructor.
Definition: OsMutex.h:96
Definition: OsMutexWnt.h:41
OsMutexBase()
Default constructor.
Definition: OsMutex.h:92
Definition: OsMutexLinux.h:37
Mutual exclusion semaphore (mutex)
Definition: OsMutex.h:50
MutexOptions
Definition: OsMutex.h:55
virtual OsStatus acquire(const OsTime &rTimeout=OsTime::OS_INFINITY)=0
Block the task until the mutex is acquired or the timeout expires.
virtual OsStatus release(void)=0
Release the mutex.
virtual OsStatus tryAcquire(void)=0
Conditionally acquire the mutex (i.e., don't block)
protect the system from priority inversion: NOTE < VxWorks requires Q_PRIORITY with this...
Definition: OsMutex.h:62