1#ifndef Cpl_System_Win32_Thread_h_
2#define Cpl_System_Win32_Thread_h_
66 unsigned stackSize = 0,
67 bool allowSimTicks =
true
101 static
void __cdecl entryPoint(
void* data );
#define Cpl_System_Thread_NativeHdl_T
Defer the definition of the native thread handle to the application's 'platform'.
Definition Thread.h:23
#define CPL_SYSTEM_THREAD_PRIORITY_NORMAL
The recommended/default priority for a thread.
Definition Thread.h:30
This is an abstract class defines the interface for an object that is "executed" when a Thread object...
Definition Runnable.h:29
This semaphore class defines the interface for a Counting Semaphore.
Definition Semaphore.h:37
This abstract class defines the operations that can be performed on a thread.
Definition Thread.h:62
This concrete class implements a Thread object using Win32 threads NOTE: The class/implementation use...
Definition Thread.h:34
Cpl::System::Semaphore m_syncSema
The thread synchronized message semaphore.
Definition Thread.h:55
bool m_allowSimTicks
Option to allow simulate ticks.
Definition Thread.h:52
Cpl::Text::FString< 64 > m_name
ASCII name of the task.
Definition Thread.h:40
int m_priority
Priority.
Definition Thread.h:49
Runnable & getRunnable(void) noexcept
See Cpl::System::Thread.
int signal(void) noexcept
See Cpl::System::Signable.
size_t m_threadID
Thread ID.
Definition Thread.h:43
const char * getName() noexcept
See Cpl::System::Thread.
HANDLE m_threadHandle
internal handle
Definition Thread.h:46
Thread(Runnable &runnable, const char *name, int priority=CPL_SYSTEM_THREAD_PRIORITY_NORMAL, unsigned stackSize=0, bool allowSimTicks=true)
Constructor.
int su_signal(void) noexcept
See Cpl::System::Signable.
Cpl_System_Thread_NativeHdl_T getNativeHandle(void) noexcept
See Cpl::System::Thread.
size_t getId() noexcept
See Cpl::System::Thread.
bool isRunning(void) noexcept
See Cpl::System::Thread.
Cpl::System::Runnable & m_runnable
Reference to the runnable object for the thread.
Definition Thread.h:37
This template class represents a NULL terminated string of a specific length.
Definition FString.h:38
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20