示例#1
0
 /// <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));
 }
示例#2
0
 /// <summary>
 /// Blocks the calling thread until the thread terminates.
 /// </summary>
 public void Join()
 {
     ThreadCore.WaitForSingleObject(Handle);
 }