MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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
 

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

virtual DtIpcRdWrLock__rti__::~DtIpcRdWrLock__rti__ ( )
virtual

destructor

Member Function Documentation

virtual void DtIpcRdWrLock__rti__::destroy ( )
virtual

destroy the lock

Reimplemented from DtRdWrLock__rti__.

virtual void DtIpcRdWrLock__rti__::init ( )
virtual

initialize the locking mechanism attributes

Reimplemented from DtRdWrLock__rti__.


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

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)