From e71d7ac2303406c4d9da1d7ff52f5873c4889f7d 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/branches/WX_2_4_BRANCH@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 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; }