]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
fixed broken TeX markup which resulted in broken links
[wxWidgets.git] / src / msw / thread.cpp
index 7c5a377d5e2b03eea56ac94e395c46d6161164ae..df5f2f2ba7b2f6d478c955e8be458afe63f169cf 100644 (file)
@@ -629,6 +629,9 @@ void wxThreadInternal::SetPriority(unsigned int priority)
 
 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)