1 #ifndef _IPC_RDWR_LOCK_H_
2 #define _IPC_RDWR_LOCK_H_
27 typedef SHARED_PTR<RdWrLock>
Ptr;
Class base of all the IPC classes that has the basic operations (Init, Wait and Dispose) to be overlo...
Definition: ipc_object.h:39
pthread_rwlock_t rwlock
Read/write lock information.
Definition: rdwr_lock.h:21
WaitResult WaitForWriting(int time_out=-1)
Performs a wait operation with the object to get it for writing.
Definition: rdwr_lock.cc:56
virtual bool Dispose()
Release the resources associated to the IPC object and sets the internal status to false...
Definition: rdwr_lock.cc:93
bool Release()
Releases the lock.
Definition: rdwr_lock.cc:81
virtual bool Init()
Initializes the object.
Definition: rdwr_lock.cc:13
virtual WaitResult Wait(int time_out=-1)
Performs a wait operation with the object to get it for reading.
Definition: rdwr_lock.cc:31
IPC object that offers the functionality of a read/write lock, implemented by means of the pthread rw...
Definition: rdwr_lock.h:18
SHARED_PTR< RdWrLock > Ptr
Pointer to a RdWrLock object.
Definition: rdwr_lock.h:27
WaitResult
Enumeration of the possible values returned when a wait operation is performed for an IPC object...
Definition: ipc_object.h:16