nidas v1.2.3
|
A C++ wrapper for a POSIX rwlock attributes. More...
#include <ThreadSupport.h>
Public Member Functions | |
RWLockAttributes () | |
RWLockAttributes (const RWLockAttributes &) | |
Copy constructor. | |
~RWLockAttributes () | |
void | setPShared (int val) |
Set the mutex pshared attribute, one of PTHREAD_PROCESS_PRIVATE or PTHREAD_PROCESS_SHARED. | |
int | getPShared () const |
pthread_rwlockattr_t * | ptr () |
Private Attributes | |
pthread_rwlockattr_t | _attrs |
A C++ wrapper for a POSIX rwlock attributes.
The only supported customization is to be able to share a RWLock between processes.
RWLockAttributes::RWLockAttributes | ( | ) |
References _attrs.
RWLockAttributes::RWLockAttributes | ( | const RWLockAttributes & | x | ) |
Copy constructor.
References _attrs, and setPShared().
RWLockAttributes::~RWLockAttributes | ( | ) |
References _attrs.
int RWLockAttributes::getPShared | ( | ) | const |
References _attrs.
|
inline |
References _attrs.
Referenced by nidas::util::RWLock::RWLock(), and nidas::util::RWLock::RWLock().
void RWLockAttributes::setPShared | ( | int | val | ) |
Set the mutex pshared attribute, one of PTHREAD_PROCESS_PRIVATE or PTHREAD_PROCESS_SHARED.
See pthread_rwlockattr_setpshared.
Exception |
References _attrs.
Referenced by RWLockAttributes().
|
private |
Referenced by getPShared(), ptr(), RWLockAttributes(), RWLockAttributes(), setPShared(), and ~RWLockAttributes().