Table of Contents

Class TaskHelper

Namespace
SampSharp.OpenMp.Core
Assembly
SampSharp.OpenMp.Core.dll

Provides helper methods for dealing with tasks.

public static class TaskHelper
Inheritance
TaskHelper
Inherited Members

Methods

IsMainThread()

Gets a value indicating whether the current thread is the main thread.

public static bool IsMainThread()

Returns

bool

true if the current thread is the main thread; otherwise, false.

SwitchToMainThread()

Returns a task which, when awaited, will switch the continuation to the main thread.

public static SyncToMainThreadTask SwitchToMainThread()

Returns

SyncToMainThreadTask

A task which moves the continuation to the main thread.