|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.mit.csail.aeolus.api.AeolusShared edu.mit.csail.aeolus.api.AeolusLock
public final class AeolusLock
Implementation of a shared lock.
Field Summary |
---|
Fields inherited from class edu.mit.csail.aeolus.api.AeolusShared |
---|
sharedLastEid |
Constructor Summary | |
---|---|
AeolusLock()
Construct an AeolusLock with the current thread's labels. |
|
AeolusLock(AeolusLabel sLabel,
AeolusLabel iLabel)
Construct an AeolusLock with the specified labels. |
Method Summary | |
---|---|
void |
lock()
Blocks until the lock is acquired. |
boolean |
tryLock()
Acquires the lock if it is not currently held and returns true, otherwise returns false. |
void |
unlock()
Releases the lock |
Methods inherited from class edu.mit.csail.aeolus.api.AeolusShared |
---|
getIntegrityLabel, getSecrecyLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AeolusLock()
public AeolusLock(AeolusLabel sLabel, AeolusLabel iLabel) throws InfoFlowControlException
InfoFlowControlException
- if thread's labels are more constrained than given labelsMethod Detail |
---|
public void lock() throws InfoFlowControlException
InfoFlowControlException
- if the thread can't write the lockpublic boolean tryLock() throws InfoFlowControlException
InfoFlowControlException
- if the thread can't read and write the lockpublic void unlock() throws InfoFlowControlException
InfoFlowControlException
- if the thread can't write the lock
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |