mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 17:34:05 +00:00
Beta match MxThread and MxSemaphore (#1644)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user