diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index e31c812c02..fa6f0e8e74 100644 --- a/src/mac/carbon/thread.cpp +++ b/src/mac/carbon/thread.cpp @@ -433,6 +433,8 @@ bool wxThreadInternal::Create(wxThread *thread, unsigned int stackSize) SetPriority(m_priority); } + m_state = STATE_NEW; + return TRUE; } diff --git a/src/mac/thread.cpp b/src/mac/thread.cpp index e31c812c02..fa6f0e8e74 100644 --- a/src/mac/thread.cpp +++ b/src/mac/thread.cpp @@ -433,6 +433,8 @@ bool wxThreadInternal::Create(wxThread *thread, unsigned int stackSize) SetPriority(m_priority); } + m_state = STATE_NEW; + return TRUE; } diff --git a/src/os2/thread.cpp b/src/os2/thread.cpp index ad67a34b11..884f66cff4 100644 --- a/src/os2/thread.cpp +++ b/src/os2/thread.cpp @@ -484,6 +484,9 @@ bool wxThreadInternal::Create( { SetPriority(m_nPriority); } + + m_eState = STATE_NEW; + return(TRUE); } diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp index 597f87eb8d..1b93fa7f52 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -1183,6 +1183,8 @@ wxThreadError wxThread::Create(unsigned int WXUNUSED(stackSize)) return wxTHREAD_NO_RESOURCE; } + m_state = STATE_NEW; + return wxTHREAD_NO_ERROR; }