Class ThreadManager
- Namespace
- Alis.Core.Aspect.Thread
- Assembly
- Alis.dll
The thread manager class
public class ThreadManagerInheritance
Inherited Members
Fields
threadTokens
The cancellation token source
private readonly Dictionary<ThreadTask, CancellationTokenSource> threadTokensField Value
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
threadTaskThreadTask-
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
threadTaskThreadTask-
The thread task