Beispiel #1
0
 /// <summary>
 /// Makes available the permit for the given thread, if it
 /// was not already available.  If the thread was blocked on
 /// {@code park} then it will unblock.  Otherwise, its next call
 /// to {@code 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.
 /// </summary>
 /// <param name="thread"> the thread to unpark, or {@code null}, in which case
 ///        this operation has no effect </param>
 public static void Unpark(Thread thread)
 {
     if (thread != null)
     {
         UNSAFE.unpark(thread);
     }
 }