cohtml.TaskScheduler
Class responsible for managing threads and executing native resource and layout tasks.
Public Functions
Section titled “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
Section titled “Public Properties”| Name | |
|---|---|
| uint | ThreadCount Returns the current thread count. |
Public Functions Documentation
Section titled “Public Functions Documentation”function TaskScheduler
Section titled “function TaskScheduler”TaskScheduler()Creates a layout thread and manages thread pool tasks for WT_Layout and WT_Resources.
function ScheduleTask
Section titled “function ScheduleTask”void ScheduleTask( WorkType type)Notifies Cohtml to execute a layout or resource task.
function Start
Section titled “function Start”void Start()Starts the Layout thread.
function Stop
Section titled “function Stop”void Stop()Stops the Layout thread.
function Dispose
Section titled “function Dispose”void Dispose()Public Property Documentation
Section titled “Public Property Documentation”property ThreadCount
Section titled “property ThreadCount”static uint ThreadCount;Returns the current thread count.
© 2026 Coherent Labs. All rights reserved.