コード例 #1
0
 /// <summary>
 /// Blocks the calling thread until a thread terminates,
 /// while continuing to perform standard COM and SendMessage pumping.
 /// </summary>
 public void Join()
 {
     if (ThreadObject != null)
     {
         ThreadObject.Join();
     }
 }
コード例 #2
0
ファイル: Scheduler.cs プロジェクト: ichttt/Twice
        public void Stop()
        {
            LogTo.Info("Stopping scheduler thread");

            IsRunning = false;
            ThreadObject?.Join();
        }
コード例 #3
0
 /// <summary>
 /// Blocks the calling thread until a thread terminates or the specified time elapses,
 /// while continuing to perform standard COM and SendMessage pumping.
 /// </summary>
 /// <param name="timeout">a System.TimeSpan set to the amount of time to wait
 /// for the thread to terminate </param>
 public bool Join(TimeSpan timeout)
 {
     return(ThreadObject != null && ThreadObject.Join(timeout));
 }
コード例 #4
0
 /// <summary>
 /// Blocks the calling thread until a thread terminates or the specified time elapses,
 /// while continuing to perform standard COM and SendMessage pumping.
 /// </summary>
 /// <param name="millisecondsTimeout">the number of milliseconds to wait for the
 /// thread to terminate</param>
 public bool Join(int millisecondsTimeout)
 {
     return(ThreadObject != null && ThreadObject.Join(millisecondsTimeout));
 }
コード例 #5
0
 /// <summary>
 /// Blocks the calling thread until a thread terminates or the specified time elapses,
 /// while continuing to perform standard COM and SendMessage pumping.
 /// </summary>
 /// <param name="timeout">a System.TimeSpan set to the amount of time to wait
 /// for the thread to terminate </param>
 public bool Join(TimeSpan timeout)
 {
     return(ThreadObject != null?ThreadObject.Join(timeout) : false);
 }
コード例 #6
0
 /// <summary>
 /// Blocks the calling thread until a thread terminates,
 /// while continuing to perform standard COM and SendMessage pumping.
 /// </summary>
 public void Join()
 {
     ThreadObject?.Join();
 }