]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
implement new wxBG_STYLE_XXX semantics for wxMSW too
[wxWidgets.git] / src / unix / threadpsx.cpp
index db3063e48e359dee1f9c9eb18863ded1c15cc211..2775f9576e9c445ef2cf70b1ab05759ab678d650 100644 (file)
@@ -720,7 +720,7 @@ public:
     wxThreadState GetState() const { return m_state; }
     void SetState(wxThreadState state)
     {
-#ifdef __WXDEBUG__
+#if wxUSE_LOG_TRACE
         static const wxChar *stateNames[] =
         {
             _T("NEW"),
@@ -731,7 +731,7 @@ public:
 
         wxLogTrace(TRACE_THREADS, _T("Thread %p: %s => %s."),
                    GetId(), stateNames[m_state], stateNames[state]);
-#endif // __WXDEBUG__
+#endif // wxUSE_LOG_TRACE
 
         m_state = state;
     }
@@ -1624,7 +1624,6 @@ bool wxThread::TestDestroy()
 
 wxThread::~wxThread()
 {
-#ifdef __WXDEBUG__
     m_critsect.Enter();
 
     // check that the thread either exited or couldn't be created
@@ -1636,7 +1635,6 @@ wxThread::~wxThread()
     }
 
     m_critsect.Leave();
-#endif // __WXDEBUG__
 
     delete m_internal;