MAK RTIspy API Documentation for HLA Evolved
List of all members | Public Member Functions
DtIpcRdWrLock__rti__ Class Reference

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
virtual ~DtIpcRdWrLock__rti__ ()
 destructor
virtual void init ()
 initialize the locking mechanism attributes
virtual void destroy ()
 destroy the lock
- Public Member Functions inherited from DtRdWrLock__rti__
 DtRdWrLock__rti__ ()
 default constructor
virtual ~DtRdWrLock__rti__ ()
 destructor
virtual int wrLock ()
 lock the protected resource for writing. Return 0 if lock acquired.
virtual int rdLock ()
 lock the protected resource for reading. Return 0 if lock acquired.
virtual int wrUnlock ()
 unlock the write-lock on the protected resource.
virtual int rdUnlock ()
 unlock the read-lock on the protected resource.

Additional Inherited Members

- Protected Member Functions inherited from DtRdWrLock__rti__
 DtRdWrLock__rti__ (const DtRdWrLock__rti__ &orig)
 copy constructor
const DtRdWrLock__rti__operator= (const DtRdWrLock__rti__ &orig)
 assignment operator
- 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.
volatile long writers
pthread_rwlock_t myPtLock
pthread_rwlock_t * myLock

Detailed Description

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.

Constructor & Destructor Documentation

DtIpcRdWrLock__rti__::DtIpcRdWrLock__rti__ ( pthread_rwlock_t *  sharedLock)

constructor

References DtRdWrLock__rti__::myLock.

DtIpcRdWrLock__rti__::~DtIpcRdWrLock__rti__ ( )
virtual

destructor

References DtRdWrLock__rti__::readers.

Member Function Documentation

void DtIpcRdWrLock__rti__::destroy ( )
virtual
void DtIpcRdWrLock__rti__::init ( )
virtual

initialize the locking mechanism attributes

Reimplemented from DtRdWrLock__rti__.

References DtRdWrLock__rti__::myLock.

Referenced by DtSmSubscribableMessageQueue__rti__::initSyncVars().


The documentation for this class was generated from the following files:

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)