From 1dfc3cda6eb139a87773646aacde950c9c45126a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 4 May 2003 20:51:09 +0000 Subject: [PATCH] Setting state to STATE_NEW in wxThread::Create git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/thread.cpp | 2 ++ src/mac/thread.cpp | 2 ++ src/os2/thread.cpp | 3 +++ src/unix/threadpsx.cpp | 2 ++ 4 files changed, 9 insertions(+) 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; } -- 2.45.2