mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Rename parameter p_stack
to p_stackSize
in MxThread::Start
method (#1452)
This commit is contained in:
@@ -14,7 +14,7 @@ public:
|
|||||||
// Note: Comes before virtual destructor
|
// Note: Comes before virtual destructor
|
||||||
virtual MxResult Run();
|
virtual MxResult Run();
|
||||||
|
|
||||||
MxResult Start(MxS32 p_stack, MxS32 p_flag);
|
MxResult Start(MxS32 p_stackSize, MxS32 p_flag);
|
||||||
|
|
||||||
void Terminate();
|
void Terminate();
|
||||||
void Sleep(MxS32 p_milliseconds);
|
void Sleep(MxS32 p_milliseconds);
|
||||||
|
@@ -25,13 +25,14 @@ MxThread::~MxThread()
|
|||||||
typedef unsigned(__stdcall* ThreadFunc)(void*);
|
typedef unsigned(__stdcall* ThreadFunc)(void*);
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100bf610
|
// FUNCTION: LEGO1 0x100bf610
|
||||||
MxResult MxThread::Start(MxS32 p_stack, MxS32 p_flag)
|
MxResult MxThread::Start(MxS32 p_stackSize, MxS32 p_flag)
|
||||||
{
|
{
|
||||||
MxResult result = FAILURE;
|
MxResult result = FAILURE;
|
||||||
|
|
||||||
if (m_semaphore.Init(0, 1) == SUCCESS) {
|
if (m_semaphore.Init(0, 1) == SUCCESS) {
|
||||||
if ((m_hThread =
|
if ((m_hThread =
|
||||||
_beginthreadex(NULL, p_stack << 2, (ThreadFunc) &MxThread::ThreadProc, this, p_flag, &m_threadId))) {
|
_beginthreadex(NULL, p_stackSize * 4, (ThreadFunc) &MxThread::ThreadProc, this, p_flag, &m_threadId)
|
||||||
|
)) {
|
||||||
result = SUCCESS;
|
result = SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user