Merge pull request #458 from Cyberboss/ThreadNames

Names some dedicated threads
This commit is contained in:
Jordan Brown
2017-12-12 18:31:36 -05:00
committed by GitHub
3 changed files with 5 additions and 0 deletions
@@ -257,6 +257,7 @@ namespace TGS.Server.ChatProviders
/// </summary>
void IRCListen()
{
Thread.CurrentThread.Name = "IRC Listener Thread";
while (irc != null && Connected())
try
{
+3
View File
@@ -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())
+1
View File
@@ -303,6 +303,7 @@ namespace TGS.Server
/// </summary>
void Watchdog()
{
Thread.CurrentThread.Name = "Watchdog Thread";
try
{
lock (restartLock)