cohtml.TaskScheduler
Class responsible for managing threads and executing native resource and layout tasks.
Public Functions
Name | |
---|---|
TaskScheduler() Creates a layout thread and manages thread pool tasks for WT_Layout and WT_Resources. | |
void | ScheduleTask(WorkType type) Notifies Cohtml to execute a layout or resource task. |
void | Start() Starts the Layout thread. |
void | Stop() Stops the Layout thread. |
void | Dispose() |
Public Properties
Name | |
---|---|
uint | ThreadCount Returns the current thread count. |
Public Functions Documentation
function TaskScheduler
TaskScheduler()
Creates a layout thread and manages thread pool tasks for WT_Layout and WT_Resources.
function ScheduleTask
void ScheduleTask(
WorkType type
)
Notifies Cohtml to execute a layout or resource task.
function Start
void Start()
Starts the Layout thread.
function Stop
void Stop()
Stops the Layout thread.
function Dispose
void Dispose()
Public Property Documentation
property ThreadCount
static uint ThreadCount;
Returns the current thread count.