Table of Contents

Class ThreadManager

Namespace
Alis.Core.Aspect.Thread
Assembly
Alis.dll

The thread manager class

public class ThreadManager

Inheritance

Inherited Members

Fields

threadTokens

The cancellation token source

private readonly Dictionary<ThreadTask, CancellationTokenSource> threadTokens

Field Value

Dictionary<ThreadTask, CancellationTokenSource>

Methods

GetThreadCount()

Gets the thread count

public int GetThreadCount()

Returns

int

The int

StartThread(ThreadTask)

Starts the thread using the specified thread task

public void StartThread(ThreadTask threadTask)

Parameters

threadTask ThreadTask

The thread task

StopAllThreads()

Stops the all threads

public void StopAllThreads()

StopThread(ThreadTask)

Stops the thread using the specified thread task

public void StopThread(ThreadTask threadTask)

Parameters

threadTask ThreadTask

The thread task