Modifier and Type | Field and Description |
---|---|
private static final long |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static long | current()
Returns the id of the current native thread if the platform can signal native threads, 0 if the platform can not signal native threads, or -1L if the current thread is a virtual thread. |
private static native long | |
private static native void | |
pack-priv static boolean | |
pack-priv static boolean | |
public static void | |
private static native void |
VIRTUAL_THREAD_ID | back to summary |
---|---|
private static final long VIRTUAL_THREAD_ID |
NativeThread | back to summary |
---|---|
public NativeThread() |
current | back to summary |
---|---|
public static long current() Returns the id of the current native thread if the platform can signal native threads, 0 if the platform can not signal native threads, or -1L if the current thread is a virtual thread. |
current0 | back to summary |
---|---|
private static native long current0() |
init | back to summary |
---|---|
private static native void init() |
isNativeThread | back to summary |
---|---|
pack-priv static boolean isNativeThread(long tid) Returns true the tid is the id of a native thread. |
isVirtualThread | back to summary |
---|---|
pack-priv static boolean isVirtualThread(long tid) Returns true if tid is -1L.
|
signal | back to summary |
---|---|
public static void signal(long tid) Signals the given native thread.
|
signal0 | back to summary |
---|---|
private static native void signal0(long tid) |