Ejemplo n.º 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();
     }
 }
Ejemplo n.º 2
0
        public void Stop()
        {
            LogTo.Info("Stopping scheduler thread");

            IsRunning = false;
            ThreadObject?.Join();
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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();
 }