* implemented VZ's idea about creating and destroying bg threads.
(PB with the destruction of waiter: I think it's a race problem but I can't localize it if someone finds it please mail it to me) * Fixed race condition in threadpsx.cpp. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -675,10 +675,10 @@ void wxThread::Exit(void *status)
|
||||
|
||||
// next wake up the threads waiting for us (OTOH, this function won't return
|
||||
// until someone waited for us!)
|
||||
p_internal->SignalExit();
|
||||
|
||||
p_internal->SetState(STATE_EXITED);
|
||||
|
||||
p_internal->SignalExit();
|
||||
|
||||
// delete both C++ thread object and terminate the OS thread object
|
||||
// GL: This is very ugly and buggy ...
|
||||
// delete this;
|
||||
|
Reference in New Issue
Block a user