RTCORBA::Mutex - A locality constrained mutex.
my $mutex = $rtorb->create_mutex();
$mutex->lock();
...
$mutex->unlock();
Provides a locking mechanism prescribed by the OMG.
lock
- When the mutex is in the unlocked state, a call to this method
will cause the mutex to change to the locked state. A call to this
method when the mutex is already in the locked state will block until it
is unlocked by the owner.
try_lock
- Takes a TimeBase::TimeT parameter, which is hundreds of
nanoseconds, that determines how long to wait in order to lock the mutex.
If the mutex is locked before the time limit, it returns true.
Otherwise, it returns false.
unlock
- Unlocks the mutex if called by the thread that locked the
mutex.