public class SynchronizationPoint extends Object
| Constructor and Description |
|---|
SynchronizationPoint() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReached()
Test if the synchronization point was reached
|
void |
reach()
Indicate that the synchronization point is reached,
waking up threads waiting for it.
|
void |
reset()
Reset the synchronization point status
|
void |
waitFor()
Wait for the synchronization point to be reached.
|
public boolean isReached()
public void waitFor()
throws InterruptedException
InterruptedExceptionpublic void reach()
public void reset()
Copyright © 2019. All rights reserved.