RemoveThread() public static method

Removes a thread from the tracker.
public static RemoveThread ( TrackedThread p_ttdThread ) : void
p_ttdThread TrackedThread The thread that was tracked.
return void
コード例 #1
0
 /// <summary>
 /// Executes the non-parameterized method from within the thread.
 /// </summary>
 /// <remarks>
 /// Once the method returns, the thread is removed from the <see cref="TrackedThreadManager"/>
 /// and exits.
 /// </remarks>
 private void RunThread()
 {
     try
     {
         this.m_tdsThreadMethod();
     }
     finally
     {
         TrackedThreadManager.RemoveThread(this);
     }
 }
コード例 #2
0
 /// <summary>
 /// Executes the paramterized method from within the thread.
 /// </summary>
 /// <remarks>
 /// Once the method returns, the thread is removed from the <see cref="TrackedThreadManager"/>
 /// and exits.
 /// </remarks>
 /// <param name="p_objParam">The parameter to pass to the thread.</param>
 private void RunParameterizedThread(object p_objParam)
 {
     try
     {
         this.m_ptsThreadMethod(p_objParam);
     }
     finally
     {
         TrackedThreadManager.RemoveThread(this);
     }
 }