82 static unsigned ThreadProc(
void* p_thread);
[AI] Base virtual class for all Mindscape engine (Mx) objects.
Implements a lightweight wrapper for Windows semaphores, allowing safe synchronization between thread...
[AI] Abstract thread class providing a platform-independent interface for thread management.
virtual ~MxThread()
[AI] Virtual destructor for MxThread.
MxCore * m_target
[AI] Pointer to the target object (optional, typically the object being processed by the thread)....
void Terminate()
[AI] Signals the thread to terminate.
virtual MxResult Run()
[AI] Virtual function executed when the thread runs.
MxResult Start(MxS32 p_stackSize, MxS32 p_flag)
[AI] Starts the thread with a given stack size and creation flags.
void Sleep(MxS32 p_milliseconds)
[AI] Sleeps the current thread for the given duration in milliseconds.
MxThread()
[AI] Protected constructor for MxThread.
MxBool IsRunning()
[AI] Returns whether the thread is currently running.