public class Barrier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
numThreads
Number of threads to wait for at the barrier.
|
Constructor and Description |
---|
Barrier(int numThreads)
Create a barrier for the specified number of threads.
|
Modifier and Type | Method and Description |
---|---|
void |
await()
Wait until
numThreads have called await() on this
barrier, then proceed. |
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.