Class TyronThreadPool
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class TyronThreadPool
- Inheritance
-
TyronThreadPool
- Inherited Members
-
- Extension Methods
-
Fields
DedicatedThreads
public ConcurrentDictionary<string, Thread> DedicatedThreads
Field Value
- ConcurrentDictionary<string, Thread>
Inst
public static TyronThreadPool Inst
Field Value
- TyronThreadPool
Logger
Field Value
- ILogger
RunningTasks
public ConcurrentDictionary<int, string> RunningTasks
Field Value
- ConcurrentDictionary<int, string>
Methods
CreateDedicatedThread(ThreadStart, string)
public static Thread CreateDedicatedThread(ThreadStart starter, string name)
Parameters
starter
ThreadStart
name
string
Returns
- Thread
Dispose()
ListAllRunningTasks()
public string ListAllRunningTasks()
Returns
- string
ListAllThreads()
public string ListAllThreads()
Returns
- string
QueueLongDurationTask(Action)
public static void QueueLongDurationTask(Action callback)
Parameters
callback
Action
QueueLongDurationTask(Action, string)
public static void QueueLongDurationTask(Action callback, string caller)
Parameters
callback
Action
caller
string
QueueTask(Action)
public static void QueueTask(Action callback)
Parameters
callback
Action
QueueTask(Action, string)
public static void QueueTask(Action callback, string caller)
Parameters
callback
Action
caller
string