|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacorb.imr.ResourceLock
This class provides shared or exclusive access to a ressource. It preferes the exclusive access, i.e. if threads are waiting for exclusive access, shared locks can't be gained.
Constructor Summary | |
---|---|
ResourceLock()
The constructor. |
Method Summary | |
---|---|
void |
gainExclusiveLock()
This method tries to aquire an exclusive lock. |
void |
gainSharedLock()
This method tries to aquire a shared lock. |
void |
releaseExclusiveLock()
Releases the exclusive lock. |
void |
releaseSharedLock()
Release the shared lock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceLock()
Method Detail |
public void gainSharedLock()
public void releaseSharedLock()
public void gainExclusiveLock()
public void releaseExclusiveLock()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |