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/cThread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/cThread.h') diff --git a/source/cThread.h b/source/cThread.h index 1e9d73c17..f2cd8a75d 100644 --- a/source/cThread.h +++ b/source/cThread.h @@ -5,7 +5,7 @@ class cThread { public: typedef void (ThreadFunc)(void*); - cThread( ThreadFunc a_ThreadFunction, void* a_Param ); + cThread( ThreadFunc a_ThreadFunction, void* a_Param, const char* a_ThreadName = 0 ); ~cThread(); void Start( bool a_bWaitOnDelete = true ); @@ -22,4 +22,6 @@ private: void* m_Param; cEvent* m_Event; cEvent* m_StopEvent; + + char* m_ThreadName; }; \ No newline at end of file -- cgit v1.2.3