nidas  v1.2-1520
Public Member Functions | Private Attributes | List of all members
nidas::util::RWLockAttributes Class Reference

A C++ wrapper for a POSIX rwlock attributes. More...

#include <ThreadSupport.h>

Public Member Functions

 RWLockAttributes ()
 
 RWLockAttributes (const RWLockAttributes &)
 Copy constructor. More...
 
 ~RWLockAttributes ()
 
void setPShared (int val) throw (Exception)
 Set the mutex pshared attribute, one of PTHREAD_PROCESS_PRIVATE or PTHREAD_PROCESS_SHARED. More...
 
int getPShared () const
 
pthread_rwlockattr_t * ptr ()
 

Private Attributes

pthread_rwlockattr_t _attrs
 

Detailed Description

A C++ wrapper for a POSIX rwlock attributes.

The only supported customization is to be able to share a RWLock between processes.

Constructor & Destructor Documentation

RWLockAttributes::RWLockAttributes ( )

References _attrs.

RWLockAttributes::RWLockAttributes ( const RWLockAttributes x)

Copy constructor.

References _attrs, getPShared(), and setPShared().

RWLockAttributes::~RWLockAttributes ( )

References _attrs.

Member Function Documentation

int RWLockAttributes::getPShared ( ) const

References _attrs.

Referenced by RWLockAttributes().

pthread_rwlockattr_t* nidas::util::RWLockAttributes::ptr ( )
inline

References _attrs.

void RWLockAttributes::setPShared ( int  val)
throw (Exception
)

Set the mutex pshared attribute, one of PTHREAD_PROCESS_PRIVATE or PTHREAD_PROCESS_SHARED.

See pthread_rwlockattr_setpshared.

Referenced by RWLockAttributes().

Member Data Documentation

pthread_rwlockattr_t nidas::util::RWLockAttributes::_attrs
private

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