|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectautohit.vm.VMObject
This is a lock-able, set-able object. Field item holds the actual data.
EPG - Initial - 8may03| Constructor Summary | |
VMObject()
Default Constructor. |
|
VMObject(java.lang.Object o)
Creator Constructor. |
|
| Method Summary | |
void |
free()
Cancel all locks |
java.lang.Object |
get()
Get the object |
void |
lock()
The calling thread will try to lock it. |
void |
set(java.lang.Object o)
Set the object |
boolean |
test()
Test if I can access it |
void |
unlock()
Knock the spinlock down one. |
void |
waitingLock()
Get the object. |
java.lang.Object |
waitingRead()
Get the object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VMObject()
public VMObject(java.lang.Object o)
o - the object| Method Detail |
public void lock()
throws VMException
VMException - if it is already locked.public boolean test()
public void unlock()
throws VMException
VMException - if it locked by something else.
public void free()
throws VMException
VMException - if it locked by something else.
public void set(java.lang.Object o)
throws VMException
VMException - if it locked by something else.
public java.lang.Object get()
throws VMException
VMException - if it locked by something else.public java.lang.Object waitingRead()
VMException - if it locked by something else.public void waitingLock()
VMException - if it locked by something else.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||