/// <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(AThreadHelper.WaitForSingleObject(Handle, time)); }
/// <summary> /// Blocks the calling thread until the thread terminates. /// </summary> public void Join() { AThreadHelper.WaitForSingleObject(Handle); }