Modifier and Type | Field and Description |
---|---|
private final int | |
private static final int | |
private int | |
private long[] | |
private int | |
private boolean |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv int | add()
Adds the current thread handle to this set, returning an index so that it can efficiently be removed later. |
pack-priv void | |
pack-priv synchronized void |
initialCapacity | back to summary |
---|---|
private final int initialCapacity |
OTHER_THREAD_INDEX | back to summary |
---|---|
private static final int OTHER_THREAD_INDEX |
otherThreads | back to summary |
---|---|
private int otherThreads |
threads | back to summary |
---|---|
private long[] threads |
used | back to summary |
---|---|
private int used |
waitingToEmpty | back to summary |
---|---|
private boolean waitingToEmpty |
NativeThreadSet | back to summary |
---|---|
pack-priv NativeThreadSet(int n) |
add | back to summary |
---|---|
pack-priv int add() Adds the current thread handle to this set, returning an index so that it can efficiently be removed later. |
remove | back to summary |
---|---|
pack-priv void remove(int i) Removes the thread at the given index. A no-op if index is -1. |
signalAndWait | back to summary |
---|---|
pack-priv synchronized void signalAndWait() Signals all native threads in the thread set and wait for the thread set to empty. |