diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index 474b92a22f..613267379e 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 474b92a22f..613267379e 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 b4b91685b9..57763be2a8 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -1168,6 +1168,8 @@ wxThreadError wxThread::Create(unsigned int WXUNUSED(stackSize)) return wxTHREAD_NO_RESOURCE; } + m_state = STATE_NEW; + return wxTHREAD_NO_ERROR; }