sipxportlib  Version 3.3
Public Member Functions | List of all members
OsMutexWnt Class Reference

#include <OsMutexWnt.h>

Inheritance diagram for OsMutexWnt:
Inheritance graph
[legend]
Collaboration diagram for OsMutexWnt:
Collaboration graph
[legend]

Public Member Functions

 OsMutexWnt (const unsigned options)
 
virtual ~OsMutexWnt ()
 
virtual OsStatus acquire (const OsTime &rTimeout=OsTime::OS_INFINITY)
 Block the task until the mutex is acquired or the timeout expires. More...
 
virtual OsStatus tryAcquire (void)
 Conditionally acquire the mutex (i.e., don't block) More...
 
virtual OsStatus release (void)
 Release the mutex. More...
 
virtual void OsMutexShow (void)
 Print mutex information to the console. More...
 
- Public Member Functions inherited from OsSyncBase
virtual ~OsSyncBase ()
 Destructor. More...
 
OsSyncBaseoperator= (const OsSyncBase &rhs)
 Assignment operator. More...
 

Additional Inherited Members

- Public Types inherited from OsMutexBase
enum  MutexOptions { Q_FIFO = 0x0, Q_PRIORITY = 0x1, DELETE_SAFE = 0x4, INVERSION_SAFE = 0x8 }
 
- Protected Member Functions inherited from OsMutexBase
 OsMutexBase ()
 Default constructor. More...
 
virtual ~OsMutexBase ()
 Destructor. More...
 
- Protected Member Functions inherited from OsSyncBase
 OsSyncBase ()
 Default constructor. More...
 

Constructor & Destructor Documentation

OsMutexWnt ( const unsigned  options)
~OsMutexWnt ( )
virtual

Member Function Documentation

OsStatus acquire ( const OsTime rTimeout = OsTime::OS_INFINITY)
virtual

Block the task until the mutex is acquired or the timeout expires.

Implements OsMutexBase.

OsStatus tryAcquire ( void  )
virtual

Conditionally acquire the mutex (i.e., don't block)

Implements OsMutexBase.

OsStatus release ( void  )
virtual

Release the mutex.

Returns
OS_BUSY if the mutex is held by some other task

Implements OsMutexBase.

void OsMutexShow ( void  )
virtual

Print mutex information to the console.

Implements OsMutexBase.