|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.omg.PortableServer.Servant
org.omg.CosConcurrencyControl.LockSetPOA
org.openorb.ccs.kernel.LockSet
public class LockSet
This class provides operatiosn to acquire and release locks
| Constructor Summary | |
|---|---|
LockSet()
|
|
| 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. |
| Methods inherited from class org.omg.CosConcurrencyControl.LockSetPOA |
|---|
_all_interfaces, _invoke, _this, _this |
| Methods inherited from class org.omg.PortableServer.Servant |
|---|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LockSet()
| Method Detail |
|---|
public void lock(lock_mode mode)
mode - the specified modepublic boolean try_lock(lock_mode mode)
mode - The lock mode.
public void unlock(lock_mode mode)
throws LockNotHeld
mode - The lock mode.
LockNotHeld - If being called to a
lock that is not held.
public void change_mode(lock_mode held_mode,
lock_mode new_mode)
throws LockNotHeld
held_mode - The current held mode.new_mode - The new mode.
LockNotHeld - Thrown when
when no lock is held.public boolean isLockable(lock_mode mode)
mode - the required lock mode
public void setRelatedLockSet(LockSet related_lockset)
related_lockset - the related lock set
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||