Beta match MxThread and MxSemaphore (#1644)

This commit is contained in:
MS
2025-07-20 21:58:16 -04:00
committed by GitHub
parent 2980f88bb0
commit 4edd8d1214
5 changed files with 82 additions and 13 deletions

View File

@@ -6,17 +6,20 @@
#include <windows.h>
// VTABLE: LEGO1 0x100dccf0
// VTABLE: BETA10 0x101c28ac
// SIZE 0x08
class MxSemaphore {
public:
MxSemaphore();
// FUNCTION: LEGO1 0x100c87e0
// FUNCTION: BETA10 0x101592a9
~MxSemaphore() { CloseHandle(m_hSemaphore); }
virtual MxResult Init(MxU32 p_initialCount, MxU32 p_maxCount);
void Wait(MxU32 p_timeoutMS);
void Acquire(MxU32 p_timeoutMS);
void TryAcquire();
void Release(MxU32 p_releaseCount);
private:

View File

@@ -8,6 +8,7 @@
class MxCore;
// VTABLE: LEGO1 0x100dc860
// VTABLE: BETA10 0x101c23e8
// SIZE 0x1c
class MxThread {
public:
@@ -19,9 +20,16 @@ public:
void Terminate();
void Sleep(MxS32 p_milliseconds);
void ResumeThread();
void SuspendThread();
BOOL TerminateThread(MxU32 p_exitCode);
MxS32 GetThreadPriority(MxU16& p_priority);
BOOL SetThreadPriority(MxU16 p_priority);
MxBool IsRunning() { return m_running; }
// SYNTHETIC: LEGO1 0x100bf580
// SYNTHETIC: BETA10 0x10147880
// MxThread::`scalar deleting destructor'
protected: