Contents | Package | Class | Tree | Deprecated | Index | Help | |||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----jsync.Mutex
Constructor Summary | |
Mutex()
|
Method Summary | |
void | enter()
|
boolean | enter(long timeout)
|
void | leave()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Mutex()
Method Detail |
public void enter()
public boolean enter(long timeout)
timeout
- the maximum time to wait in milliseconds.
true
if mutex is successfully locked,
false
if enter()
was terminated
due to timeout expiration.public void leave()
leave()
invocations is equal to the number of enter()
invocations.Contents | Package | Class | Tree | Deprecated | Index | Help | |||
PREV | NEXT | SHOW LISTS | HIDE LISTS |