|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectbench.tm.runtime.internal.Lock
public class Lock
Field Summary | |
---|---|
protected java.lang.Thread |
owner
|
Constructor Summary | |
---|---|
Lock()
|
Method Summary | |
---|---|
void |
get()
Get the lock and record the current thread as the owner it. |
boolean |
own()
Returns true iff the current thread owns the lock. |
void |
release()
Release the lock if the current thread owns it, otherwise do nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Thread owner
Constructor Detail |
---|
public Lock()
Method Detail |
---|
public void get()
public boolean own()
public void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |