| Access | Constructor and Description |
|---|---|
| pack-priv | BaseVirtualThread(String
thread name, can be null name, int thread characteristics characteristics, boolean true when bound to an OS thread bound)Initializes a virtual Thread. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract void | park()
Parks the current virtual thread until the parking permit is available or the thread is interrupted. |
| pack-priv abstract void | parkNanos(long nanos)
Parks current virtual thread up to the given waiting time until the parking permit is available or the thread is interrupted. |
| pack-priv abstract void |
| BaseVirtualThread | back to summary |
|---|---|
| pack-priv BaseVirtualThread(String name, int characteristics, boolean bound) Initializes a virtual Thread.
| |
| park | back to summary |
|---|---|
| pack-priv abstract void park() Parks the current virtual thread until the parking permit is available or the thread is interrupted. The behavior of this method when the current thread is not this thread is not defined. | |
| parkNanos | back to summary |
|---|---|
| pack-priv abstract void parkNanos(long nanos) Parks current virtual thread up to the given waiting time until the parking permit is available or the thread is interrupted. The behavior of this method when the current thread is not this thread is not defined. | |
| unpark | back to summary |
|---|---|
| pack-priv abstract void unpark() Makes available the parking permit to the given this virtual thread. | |