From c763d6f063b4ce92f1f834534f973d1623e8a467 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Fri, 28 Nov 2008 17:56:10 +0000 Subject: [PATCH] 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 --- include/wx/thread.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/wx/thread.h b/include/wx/thread.h index 9e07b4e821..0b237cb4f2 100644 --- a/include/wx/thread.h +++ b/include/wx/thread.h @@ -633,11 +633,10 @@ class WXDLLIMPEXP_BASE wxThreadHelper private: void KillThread() { - // If detached thread is about to finish, it will set - // m_thread to NULL so don't delete it then - // But if KillThread is called before detached thread - // sets it to NULL, then the thread object still - // exists and can be killed + // If wxThreadHelperThread is detached and is about to finish, it will + // set m_thread to NULL so don't delete it then. + // But if KillThread is called before wxThreadHelperThread (in detached mode) + // sets it to NULL, then the thread object still exists and can be killed wxCriticalSectionLocker locker(m_critSection); if ( m_thread ) -- 2.50.0