This is the documented behavior: all methods accessing m_internal should
lock it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73997
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxThreadError wxThread::Create(unsigned int WXUNUSED_STACKSIZE(stackSize))
{
wxThreadError wxThread::Create(unsigned int WXUNUSED_STACKSIZE(stackSize))
{
+ wxCriticalSectionLocker lock(m_critsect);
+
if ( m_internal->GetState() != STATE_NEW )
{
// don't recreate thread
if ( m_internal->GetState() != STATE_NEW )
{
// don't recreate thread