|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.comp.LockPack
Data structure of a lock. Multiple locks can be chained to form a linked list.
| Field Summary | |
int |
counter
The number of times the holder thread grabs the lock. |
WorkerThread |
holder
Thread that holds the lock of the target object. |
int |
lockReqCount
The number of threads competing for the lock of the target object. |
LockPack |
next
Next lock pack in the chain. |
java.lang.Object |
target
The target object being locked or waited on. |
int |
waitCount
The number of threads waiting on the target object. |
| Constructor Summary | |
LockPack(java.lang.Object target_)
|
|
| Method Summary | |
java.lang.String |
printAll()
Returns all the locks' and waiting threads' information. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.Object target
public WorkerThread holder
public int counter
public int lockReqCount
public int waitCount
public LockPack next
| Constructor Detail |
public LockPack(java.lang.Object target_)
| Method Detail |
public java.lang.String printAll()
Component.Locks
printAll in interface Component.Lockspublic java.lang.String toString()
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||