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
This commit is contained in:
@@ -433,6 +433,8 @@ bool wxThreadInternal::Create(wxThread *thread, unsigned int stackSize)
|
||||
SetPriority(m_priority);
|
||||
}
|
||||
|
||||
m_state = STATE_NEW;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@@ -433,6 +433,8 @@ bool wxThreadInternal::Create(wxThread *thread, unsigned int stackSize)
|
||||
SetPriority(m_priority);
|
||||
}
|
||||
|
||||
m_state = STATE_NEW;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@@ -484,6 +484,9 @@ bool wxThreadInternal::Create(
|
||||
{
|
||||
SetPriority(m_nPriority);
|
||||
}
|
||||
|
||||
m_eState = STATE_NEW;
|
||||
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
|
@@ -1168,6 +1168,8 @@ wxThreadError wxThread::Create(unsigned int WXUNUSED(stackSize))
|
||||
return wxTHREAD_NO_RESOURCE;
|
||||
}
|
||||
|
||||
m_state = STATE_NEW;
|
||||
|
||||
return wxTHREAD_NO_ERROR;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user