sipxportlib
Version 3.3
|
Base class for the synchronization mechanisms in the OS abstraction layer. More...
#include <OsSyncBase.h>
Public Member Functions | |
virtual | ~OsSyncBase () |
Destructor. More... | |
OsSyncBase & | operator= (const OsSyncBase &rhs) |
Assignment operator. More... | |
virtual OsStatus | acquire (const OsTime &rTimeout=OsTime::OS_INFINITY)=0 |
Block until the sync object is acquired or the timeout expires. More... | |
virtual OsStatus | tryAcquire (void)=0 |
Conditionally acquire the semaphore (i.e., don't block) More... | |
virtual OsStatus | release (void)=0 |
Release the sync object. More... | |
Protected Member Functions | |
OsSyncBase () | |
Default constructor. More... | |
Base class for the synchronization mechanisms in the OS abstraction layer.
|
inlinevirtual |
Destructor.
|
inlineprotected |
Default constructor.
OsSyncBase& operator= | ( | const OsSyncBase & | rhs | ) |
Assignment operator.
|
pure virtual |
Block until the sync object is acquired or the timeout expires.
Implemented in OsMutexBase, OsCSemBase, OsMutexWnt, OsBSemBase, OsMutexLinux, OsCSemWnt, OsCSemLinux, OsBSemWnt, and OsBSemLinux.
|
pure virtual |
Conditionally acquire the semaphore (i.e., don't block)
Implemented in OsMutexBase, OsCSemBase, OsMutexWnt, OsBSemBase, OsMutexLinux, OsCSemWnt, OsCSemLinux, OsBSemWnt, and OsBSemLinux.
|
pure virtual |
Release the sync object.
Implemented in OsMutexBase, OsCSemBase, OsBSemBase, OsMutexWnt, OsMutexLinux, OsCSemWnt, OsCSemLinux, OsBSemWnt, and OsBSemLinux.