ThreadPool ThreadPool ThreadPool ThreadPool Class

Definition

public : static class ThreadPool
static struct winrt::Windows::System::Threading::ThreadPool
public static class ThreadPool
Public Static Class ThreadPool
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The ThreadPool class has only static methods, so its methods can be called without creating an instance of the class.

Methods

RunAsync(WorkItemHandler) RunAsync(WorkItemHandler) RunAsync(WorkItemHandler) RunAsync(WorkItemHandler)

Creates a work item.

RunAsync(WorkItemHandler, WorkItemPriority) RunAsync(WorkItemHandler, WorkItemPriority) RunAsync(WorkItemHandler, WorkItemPriority) RunAsync(WorkItemHandler, WorkItemPriority)

Creates a work item and specifies its priority relative to other work items in the thread pool.

RunAsync(WorkItemHandler, WorkItemPriority, WorkItemOptions) RunAsync(WorkItemHandler, WorkItemPriority, WorkItemOptions) RunAsync(WorkItemHandler, WorkItemPriority, WorkItemOptions) RunAsync(WorkItemHandler, WorkItemPriority, WorkItemOptions)

Creates a work item, specifies its priority relative to other work items in the thread pool, and specifies how long-running work items should be run.