Ejemplo n.º 1
0
        /// <summary>
        /// Releases all resources used by the InernalThread.
        /// </summary>
        /// <param name="bDisposing">Set to <i>true</i> when called from Dispose().</param>
        protected virtual void Dispose(bool bDisposing)
        {
            if (m_evtCancel != null)
            {
                m_evtCancel.Set();
            }

            StopInternalThread();

            if (m_evtCancel != null)
            {
                m_evtCancel.Dispose();
                m_evtCancel = null;
            }
        }