![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Platform independent read-lock / write-lock. More...
Inheritance diagram for DtIpcRdWrLock__rti__:
Collaboration diagram for DtIpcRdWrLock__rti__:Public Member Functions | |
| DtIpcRdWrLock__rti__ (pthread_rwlock_t *sharedLock) | |
| constructor More... | |
| virtual | ~DtIpcRdWrLock__rti__ () |
| destructor More... | |
| virtual void | init () |
| initialize the locking mechanism attributes More... | |
| virtual void | destroy () |
| destroy the lock More... | |
Public Member Functions inherited from DtRdWrLock__rti__ | |
| DtRdWrLock__rti__ () | |
| default constructor More... | |
| virtual | ~DtRdWrLock__rti__ () |
| destructor More... | |
| virtual int | wrLock () |
| lock the protected resource for writing. Return 0 if lock acquired. More... | |
| virtual int | rdLock () |
| lock the protected resource for reading. Return 0 if lock acquired. More... | |
| virtual int | wrUnlock () |
| unlock the write-lock on the protected resource. More... | |
| virtual int | rdUnlock () |
| unlock the read-lock on the protected resource. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from DtRdWrLock__rti__ | |
| DtRdWrLock__rti__ (const DtRdWrLock__rti__ &orig) | |
| copy constructor More... | |
| const DtRdWrLock__rti__ & | operator= (const DtRdWrLock__rti__ &orig) |
| assignment operator More... | |
Protected Attributes inherited from DtRdWrLock__rti__ | |
| volatile long | readers |
| The Win32 implementation uses two counters and the Interlocked Variable Access facility to create a lightweight locking mechanism. More... | |
| volatile long | writers |
| pthread_rwlock_t | myPtLock |
| pthread_rwlock_t * | myLock |
Platform independent read-lock / write-lock.
instances of DtIpcRdWrLock are used to provide a platform independent read-lock / write-lock mechanism for use by threads of different processes.
| DtIpcRdWrLock__rti__::DtIpcRdWrLock__rti__ | ( | pthread_rwlock_t * | sharedLock | ) |
constructor
|
virtual |
destructor
|
virtual |
destroy the lock
Reimplemented from DtRdWrLock__rti__.
|
virtual |
initialize the locking mechanism attributes
Reimplemented from DtRdWrLock__rti__.