From aa392170a2b0fc392c8203a4b31301eb7c94890e Mon Sep 17 00:00:00 2001 From: faketruth Date: Fri, 23 Dec 2011 14:26:29 +0000 Subject: Added thread names to cThread so when debugging in Visual Studio you actually know what thread you're looking at git-svn-id: http://mc-server.googlecode.com/svn/trunk@100 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cServer.cpp') diff --git a/source/cServer.cpp b/source/cServer.cpp index e6d475f46..5fbd6d8c7 100644 --- a/source/cServer.cpp +++ b/source/cServer.cpp @@ -340,8 +340,8 @@ void ServerTickThread( void * a_Param ) void cServer::StartListenThread() { - m_pState->pListenThread = new cThread( ServerListenThread, this ); - m_pState->pTickThread = new cThread( ServerTickThread, this ); + m_pState->pListenThread = new cThread( ServerListenThread, this, "cServer::ServerListenThread" ); + m_pState->pTickThread = new cThread( ServerTickThread, this, "cServer::ServerTickThread" ); m_pState->pListenThread->Start( true ); m_pState->pTickThread->Start( true ); } -- cgit v1.2.3