CORBA 2.6.1 Programmer's Reference

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. The
Condition_Variable class also maintains the state of the condition variable indicating whether the
condition variable has been signaled. If the condition variable has already been signaled, the next
immediate wait ( ) call on the condition variable returns without blocking. However, any subsequent wait
( ) call on the condition variable blocks untill the signal ( ) or broadcast ( ) calls are made on the
condition variable.
Condition_Variable inherits from Mutex.
API Methods
Condition_Variable()
Creates a condition variable object.