]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
Include the size of any window borders (size vs. clientsize
[wxWidgets.git] / src / unix / threadpsx.cpp
index 3da088548daaf881646ef59286630d172693e54c..8365dfc5ebd5fac7ddc0a570052e23e8ecebceb9 100644 (file)
@@ -1483,6 +1483,12 @@ void wxThread::Exit(ExitCode status)
         //       only call one thread function at a time :-(
         DeleteThread(this);
     }
+    else
+    {
+        m_critsect.Enter();
+        m_internal->SetState(STATE_EXITED);
+        m_critsect.Leave();
+    }
 
     // terminate the thread (pthread_exit() never returns)
     pthread_exit(status);