OpenSim/Framework/Monitoring/WorkManager.cs
/// <summary>
/// Start a new long-lived thread.
/// </summary>
/// <param name="start">The method that will be executed in a new thread</param>
/// <param name="name">A name to give to the new thread</param>
/// <param name="priority">Priority to run the thread at</param>
/// <param name="isBackground">True to run this thread as a background thread, otherwise false</param>
/// <param name="alarmIfTimeout">Trigger an alarm function is we have timed out</param>
/// <param name="log">If true then creation of thread is logged.</param>
/// <returns>The newly created Thread object</returns>
Start a new long-lived thread.
Start a new long - lived thread .
public static Thread StartThread(
            ThreadStart start, string name, ThreadPriority priority, bool isBackground, bool alarmIfTimeout, bool log = true)
        {
            return StartThread(start, name, priority, isBackground, alarmIfTimeout, null, Watchdog.DEFAULT_WATCHDOG_TIMEOUT_MS, log);
        }
public static Thread StartThread ( ThreadStart start , string name , ThreadPriority priority , bool isBackground , bool alarmIfTimeout , bool log = true ) { return StartThread ( start , name , priority , isBackground , alarmIfTimeout , null , Watchdog . DEFAULT_WATCHDOG_TIMEOUT_MS , log ) ; }
Start a new long-lived thread.
Start a new long - lived thread .
The newly created Thread object
The newly created Thread object
start
ThreadStart
The method that will be executed in a new thread
The method that will be executed in a new thread
name
string
A name to give to the new thread
A name to give to the new thread
priority
ThreadPriority
Priority to run the thread at
Priority to run the thread at
isBackground
bool
True to run this thread as a background thread, otherwise false
True to run this thread as a background thread otherwise false
alarmIfTimeout
bool
Trigger an alarm function is we have timed out
Trigger an alarm function is we have timed out
log
bool
If true then creation of thread is logged.
If true then creation of thread is logged .