no change; just reformat wxThreadHelper::KillThread's comment and refer to wxThreadHelperThread inside it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi 2008-11-28 17:56:10 +00:00
parent 3d5930b5ea
commit c763d6f063

View File

@ -633,11 +633,10 @@ class WXDLLIMPEXP_BASE wxThreadHelper
private: private:
void KillThread() void KillThread()
{ {
// If detached thread is about to finish, it will set // If wxThreadHelperThread is detached and is about to finish, it will
// m_thread to NULL so don't delete it then // set m_thread to NULL so don't delete it then.
// But if KillThread is called before detached thread // But if KillThread is called before wxThreadHelperThread (in detached mode)
// sets it to NULL, then the thread object still // sets it to NULL, then the thread object still exists and can be killed
// exists and can be killed
wxCriticalSectionLocker locker(m_critSection); wxCriticalSectionLocker locker(m_critSection);
if ( m_thread ) if ( m_thread )