IPC object that offers the functionality of a read/write lock, implemented by means of the pthread rwlock API.
More...
#include <rdwr_lock.h>
IPC object that offers the functionality of a read/write lock, implemented by means of the pthread rwlock API.
- See also
- IPCObject
| bool ipc::RdWrLock::Dispose |
( |
| ) |
|
|
virtual |
Release the resources associated to the IPC object and sets the internal status to false.
- Returns
true if successful.
Reimplemented from ipc::IPCObject.
| bool ipc::RdWrLock::Init |
( |
| ) |
|
|
virtual |
Initializes the object.
- Returns
true if successful.
Reimplemented from ipc::IPCObject.
| bool ipc::RdWrLock::Release |
( |
| ) |
|
Releases the lock.
- Returns
true if successful.
| WaitResult ipc::RdWrLock::Wait |
( |
int |
time_out = -1 | ) |
|
|
virtual |
Performs a wait operation with the object to get it for reading.
- Parameters
-
| time_out | Time out (infinite by default). |
- Returns
WAIT_OBJECT if successful, WAIT_TIMEOUT if time out or WAIT_ERROR is error.
Reimplemented from ipc::IPCObject.
| WaitResult ipc::RdWrLock::WaitForWriting |
( |
int |
time_out = -1 | ) |
|
Performs a wait operation with the object to get it for writing.
- Parameters
-
| time_out | Time out (infinite by default). |
- Returns
WAIT_OBJECT if successful, WAIT_TIMEOUT if time out or WAIT_ERROR is error.
| pthread_rwlock_t ipc::RdWrLock::rwlock |
|
private |
Read/write lock information.
The documentation for this class was generated from the following files: