toplevel fixes to deal with base class fixes. Create interface change to support passing in stacksize and OS/2 SystemSettingsNative support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-01-07 16:51:01 +00:00
parent 5150c01688
commit 793c7f9b9c
3 changed files with 37 additions and 11 deletions

View File

@@ -317,7 +317,9 @@ public:
}
// create a new (suspended) thread (for the given thread object)
bool Create(wxThread* pThread);
bool Create( wxThread* pThread
,unsigned int uStackSize
);
// suspend/resume/terminate
bool Suspend();
@@ -415,6 +417,7 @@ void wxThreadInternal::SetPriority(
bool wxThreadInternal::Create(
wxThread* pThread
, unsigned int uStackSize
)
{
APIRET ulrc;
@@ -423,7 +426,7 @@ bool wxThreadInternal::Create(
,(PFNTHREAD)wxThreadInternal::OS2ThreadStart
,(ULONG)pThread
,CREATE_SUSPENDED | STACK_SPARSE
,8192L
,(ULONG)uStackSize
);
if(ulrc != 0)
{
@@ -519,9 +522,11 @@ wxThread::~wxThread()
// create/start thread
// -------------------
wxThreadError wxThread::Create()
wxThreadError wxThread::Create(
unsigned int uStackSize
)
{
if ( !m_internal->Create(this) )
if ( !m_internal->Create(this, uStackSize) )
return wxTHREAD_NO_RESOURCE;
return wxTHREAD_NO_ERROR;