]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
wxThread::Kill() doesn't call OnExit() incorrectly
[wxWidgets.git] / src / unix / threadpsx.cpp
index c9915fa3b44d2e716c9b9344a39faff28b0d58b6..f0a19482a01340d443029899539ba8cc018a8cbb 100644 (file)
@@ -1260,7 +1260,8 @@ wxThreadError wxThread::Kill()
 #if !HAVE_THREAD_CLEANUP_FUNCTIONS
                 ScheduleThreadForDeletion();
 
-                OnExit();
+                // don't call OnExit() here, it can only be called in the
+                // threads context and we're in the context of another thread
 
                 DeleteThread(this);
 #endif // HAVE_THREAD_CLEANUP_FUNCTIONS