]> git.saurik.com Git - wxWidgets.git/commitdiff
Setting state to STATE_NEW in wxThread::Create
authorJulian Smart <julian@anthemion.co.uk>
Sun, 4 May 2003 20:51:09 +0000 (20:51 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 4 May 2003 20:51:09 +0000 (20:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/thread.cpp
src/mac/thread.cpp
src/os2/thread.cpp
src/unix/threadpsx.cpp

index e31c812c02b2c1de8668e422ed414461e06c3d66..fa6f0e8e742e19e03a6ca3671a6dc674c24a985e 100644 (file)
@@ -433,6 +433,8 @@ bool wxThreadInternal::Create(wxThread *thread, unsigned int stackSize)
         SetPriority(m_priority);
     }
 
+    m_state = STATE_NEW;
+
     return TRUE;
 }
 
index e31c812c02b2c1de8668e422ed414461e06c3d66..fa6f0e8e742e19e03a6ca3671a6dc674c24a985e 100644 (file)
@@ -433,6 +433,8 @@ bool wxThreadInternal::Create(wxThread *thread, unsigned int stackSize)
         SetPriority(m_priority);
     }
 
+    m_state = STATE_NEW;
+
     return TRUE;
 }
 
index ad67a34b117b6e7ee29e84b690341b596da85180..884f66cff4ed4f2e399c68560083655f34e61929 100644 (file)
@@ -484,6 +484,9 @@ bool wxThreadInternal::Create(
     {
         SetPriority(m_nPriority);
     }
+
+    m_eState = STATE_NEW;
+
     return(TRUE);
 }
 
index 597f87eb8dab0f164b498bad88bf414aeabe6da1..1b93fa7f5216f5555574a6fe7bd3f53aac19b664 100644 (file)
@@ -1183,6 +1183,8 @@ wxThreadError wxThread::Create(unsigned int WXUNUSED(stackSize))
         return wxTHREAD_NO_RESOURCE;
     }
 
+    m_state = STATE_NEW;
+
     return wxTHREAD_NO_ERROR;
 }