Udostępnij za pośrednictwem


LockSupport.Unpark(Thread) Method

Definition

Makes available the permit for the given thread, if it was not already available.

[Android.Runtime.Register("unpark", "(Ljava/lang/Thread;)V", "")]
public static void Unpark (Java.Lang.Thread? thread);
[<Android.Runtime.Register("unpark", "(Ljava/lang/Thread;)V", "")>]
static member Unpark : Java.Lang.Thread -> unit

Parameters

thread
Thread

the thread to unpark, or null, in which case this operation has no effect

Attributes

Remarks

Makes available the permit for the given thread, if it was not already available. If the thread was blocked on park then it will unblock. Otherwise, its next call to park is guaranteed not to block. This operation is not guaranteed to have any effect at all if the given thread has not been started.

Java documentation for java.util.concurrent.locks.LockSupport.unpark(java.lang.Thread).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to