WaitForSingleObject() public static method

Waits an infinite amount of time for the specified object to become signaled.
public static WaitForSingleObject ( SafeMemoryHandle handle ) : WaitValues
handle Binarysharp.MemoryManagement.Native.SafeMemoryHandle A handle to the object.
return WaitValues
 /// <summary>
 ///     Blocks the calling thread until a thread terminates or the specified time elapses.
 /// </summary>
 /// <param name="time">The timeout.</param>
 /// <returns>The return value is a flag that indicates if the thread terminated or if the time elapsed.</returns>
 public WaitValues Join(TimeSpan time)
 {
     return(ThreadCore.WaitForSingleObject(Handle, time));
 }
 /// <summary>
 ///     Blocks the calling thread until the thread terminates.
 /// </summary>
 public void Join()
 {
     ThreadCore.WaitForSingleObject(Handle);
 }