org.openorb.ccs.kernel
public class LockSet extends LockSetPOA
Method Summary | |
---|---|
void | change_mode(lock_mode held_mode, lock_mode new_mode)
Changes the mode of a single lock.
|
boolean | isLockable(lock_mode mode)
return whether the current lock mode permits the required lock mode |
void | lock(lock_mode mode)
Acquires a lock on the specified lock set in the specified mode |
void | setRelatedLockSet(LockSet related_lockset)
sets the related lock set |
boolean | try_lock(lock_mode mode)
Attempts to acquire a lock on the specified lock set.
|
void | unlock(lock_mode mode)
Drops a single lock on the specified lock set in the specified mode.
|
Parameters: held_mode The current held mode. new_mode The new mode.
Throws: org.omg.CosConcurrencyControl.LockNotHeld Thrown when when no lock is held.
Parameters: mode the required lock mode
Returns: true if the lock set can be locked to this mode
Parameters: mode the specified mode
Parameters: related_lockset the related lock set
Parameters: mode The lock mode.
Returns: True when the lock was successful, false otherwise.
Parameters: mode The lock mode.
Throws: org.omg.CosConcurrencyControl.LockNotHeld If being called to a lock that is not held.