|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rrdService.util.Mutex
The class Mutex implement a mutex
- shared variable
Lock
, Serialized FormField Summary | |
private int |
cpt
allow to count the number of thread which call the mutex |
Constructor Summary | |
Mutex(int q)
Constructor of class Mutex |
Method Summary | |
int |
getNbThreadLocked()
getNbThreadLocked return the number of thread lock on the mutex |
void |
P()
Lock mutex |
java.lang.String |
toString()
return a String representation of a mutex |
void |
V()
Unlock mutex |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int cpt
Constructor Detail |
public Mutex(int q)
q
- a int which initialize the mutexMethod Detail |
public int getNbThreadLocked()
public void P()
public java.lang.String toString()
toString
in class java.lang.Object
public void V()
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |