to EXITED. This is consistent with MSW and
fixes a crash with double deletion.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31672
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// only call one thread function at a time :-(
DeleteThread(this);
}
// 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);
// terminate the thread (pthread_exit() never returns)
pthread_exit(status);