Top Fields Constructors Methods
sun.nio.ch

pack-priv Class NativeThreadSet

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private static final int
private int
private long[]
private int
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod 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
remove(int i)

Removes the thread at the given index.

pack-priv synchronized void
signalAndWait()

Signals all native threads in the thread set and wait for the thread set to empty.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

initialCapacityback to summary
private final int initialCapacity
OTHER_THREAD_INDEXback to summary
private static final int OTHER_THREAD_INDEX
otherThreadsback to summary
private int otherThreads
threadsback to summary
private long[] threads
usedback to summary
private int used
waitingToEmptyback to summary
private boolean waitingToEmpty

Constructor Detail

NativeThreadSetback to summary
pack-priv NativeThreadSet(int n)

Method Detail

addback 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.

removeback to summary
pack-priv void remove(int i)

Removes the thread at the given index. A no-op if index is -1.

signalAndWaitback to summary
pack-priv synchronized void signalAndWait()

Signals all native threads in the thread set and wait for the thread set to empty.