git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20554
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxThreadInternal::Create(wxThread *thread, unsigned int stackSize)
{
+ wxASSERT_MSG( m_state == STATE_NEW && !m_hThread,
+ _T("Create()ing thread twice?") );
+
// for compilers which have it, we should use C RTL function for thread
// creation instead of Win32 API one because otherwise we will have memory
// leaks if the thread uses C RTL (and most threads do)
SetPriority(m_priority);
}
- m_state = STATE_NEW;
-
return TRUE;
}
return wxTHREAD_NO_RESOURCE;
}
- m_internal->SetState( STATE_NEW );
-
return wxTHREAD_NO_ERROR;
}