* 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:
Guilhem Lavaux
1999-05-08 12:18:53 +00:00
parent 0304608682
commit 2a4f27f209
4 changed files with 78 additions and 99 deletions

View File

@@ -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;