BC++ 5.x also supports _beginthreadex and _endthreadex
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
#define _MT
|
#define _MT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __VISUALC__
|
#if defined(__VISUALC__) || (defined(__BORLANDC__) && (__BORLANDC__ >= 0x500))
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -442,7 +442,7 @@ bool wxThreadInternal::Create(wxThread *thread)
|
|||||||
// for compilers which have it, we should use C RTL function for thread
|
// for compilers which have it, we should use C RTL function for thread
|
||||||
// creation instead of Win32 API one because otherwise we will have memory
|
// creation instead of Win32 API one because otherwise we will have memory
|
||||||
// leaks if the thread uses C RTL (and most threads do)
|
// leaks if the thread uses C RTL (and most threads do)
|
||||||
#ifdef __VISUALC__
|
#if defined(__VISUALC__) || (defined(__BORLANDC__) && (__BORLANDC__ >= 0x500))
|
||||||
typedef unsigned (__stdcall *RtlThreadStart)(void *);
|
typedef unsigned (__stdcall *RtlThreadStart)(void *);
|
||||||
|
|
||||||
m_hThread = (HANDLE)_beginthreadex(NULL, 0,
|
m_hThread = (HANDLE)_beginthreadex(NULL, 0,
|
||||||
@@ -912,7 +912,7 @@ void wxThread::Exit(ExitCode status)
|
|||||||
delete this;
|
delete this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __VISUALC__
|
#if defined(__VISUALC__) || (defined(__BORLANDC__) && (__BORLANDC__ >= 0x500))
|
||||||
_endthreadex((unsigned)status);
|
_endthreadex((unsigned)status);
|
||||||
#else // !VC++
|
#else // !VC++
|
||||||
::ExitThread((DWORD)status);
|
::ExitThread((DWORD)status);
|
||||||
|
Reference in New Issue
Block a user