CORBA 2.3.3 Programmer's Reference (NonStop CORBA 2.3.7+)
Returns zero if successful.
int unlock()
Unlocks the mutex. Returns zero if successful.
class Preemption_Mutex
This class, which wraps FW_Thread::Mutex with preemption awareness, is a no-op on
non-preemptive threading platforms such as NonStop systems. On preemptive threading platforms (such
as Unix and Microsoft Windows), this class behaves identically to Fw_Thread::Mutex.
API Methods
Preemption_Mutex()
Creates a mutex object.
~Preemption_Mutex()
Destructor for the current mutex object.
int lock()
Blocks the current thread until the mutex can be locked. Returns zero if successful.
int try_lock()
Attempts to lock the mutex. If unable to, returns immediately with non-zero result. Returns zero if
successful.
int unlock()
Unlocks the mutex. Returns zero if successful.
class Condition_Variable
Wraps condition variable function and data as an object coupled with Mutex. Most uses of condition
variables have a one-to-one relationship with a protecting mutex. This object combines the two.
Condition_Variable inherits from Mutex.
API Methods
Condition_Variable()
Creates a condition variable object.
~Condition_Variable()
Destructor for the current condition variable object.
int broadcast()
Signals all threads waiting on this condition variable. Returns zero if successful.