Rename parameter p_stack to p_stackSize in MxThread::Start method (#1452)

This commit is contained in:
Florian Kaiser
2025-05-09 12:44:53 +02:00
committed by GitHub
parent 0a2d598b57
commit 9027849848
2 changed files with 4 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ public:
// Note: Comes before virtual destructor
virtual MxResult Run();
MxResult Start(MxS32 p_stack, MxS32 p_flag);
MxResult Start(MxS32 p_stackSize, MxS32 p_flag);
void Terminate();
void Sleep(MxS32 p_milliseconds);

View File

@@ -25,13 +25,14 @@ MxThread::~MxThread()
typedef unsigned(__stdcall* ThreadFunc)(void*);
// FUNCTION: LEGO1 0x100bf610
MxResult MxThread::Start(MxS32 p_stack, MxS32 p_flag)
MxResult MxThread::Start(MxS32 p_stackSize, MxS32 p_flag)
{
MxResult result = FAILURE;
if (m_semaphore.Init(0, 1) == SUCCESS) {
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;
}
}