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.
voidScheduleTask(WorkType type)
Notifies Cohtml to execute a layout or resource task.
voidStart()
Starts the Layout thread.
voidStop()
Stops the Layout thread.
voidDispose()

Public Properties

Name
uintThreadCount
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.