public static RemoveThread ( |
||
p_ttdThread | The thread that was tracked. | |
return | void |
/// <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); } }
/// <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); } }