28 typedef SHARED_PTR<Mutex>
Ptr;
44 bool Init(
bool initial_owner);
IPC object that offers the functionality of a mutex, implemented by means of the pthread mutex API...
Definition: mutex.h:18
virtual bool Dispose()
Release the resources associated to the IPC object and sets the internal status to false...
Definition: mutex.cc:80
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_mutex_t mutex
Mutex information.
Definition: mutex.h:22
SHARED_PTR< Mutex > Ptr
Pointer to a Mutex object.
Definition: mutex.h:28
bool Release()
Releases/unlocks the mutex.
Definition: mutex.cc:65
virtual bool Init()
Initializes the object without locking the mutex.
Definition: mutex.h:34
pthread_t locker
Id. of the thread that locks the mutex.
Definition: mutex.h:21
virtual WaitResult Wait(int time_out=-1)
Performs a wait operation with the object to get it.
Definition: mutex.cc:34
WaitResult
Enumeration of the possible values returned when a wait operation is performed for an IPC object...
Definition: ipc_object.h:16