mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Merge pull request #458 from Cyberboss/ThreadNames
Names some dedicated threads
This commit is contained in:
@@ -257,6 +257,7 @@ namespace TGS.Server.ChatProviders
|
||||
/// </summary>
|
||||
void IRCListen()
|
||||
{
|
||||
Thread.CurrentThread.Name = "IRC Listener Thread";
|
||||
while (irc != null && Connected())
|
||||
try
|
||||
{
|
||||
|
||||
@@ -143,6 +143,7 @@ namespace TGS.Server
|
||||
//Initializing thread
|
||||
public void InitializeImpl()
|
||||
{
|
||||
Thread.CurrentThread.Name = "Initialization Thread";
|
||||
try
|
||||
{
|
||||
if (DaemonStatus() != DreamDaemonStatus.Offline)
|
||||
@@ -287,6 +288,8 @@ namespace TGS.Server
|
||||
//Compiler thread
|
||||
void CompileImpl()
|
||||
{
|
||||
if(Thread.CurrentThread.Name == null)
|
||||
Thread.CurrentThread.Name = "Compiler Thread";
|
||||
try
|
||||
{
|
||||
if (!RepoConfigsMatch())
|
||||
|
||||
@@ -303,6 +303,7 @@ namespace TGS.Server
|
||||
/// </summary>
|
||||
void Watchdog()
|
||||
{
|
||||
Thread.CurrentThread.Name = "Watchdog Thread";
|
||||
try
|
||||
{
|
||||
lock (restartLock)
|
||||
|
||||
Reference in New Issue
Block a user