cIsThread threads get a window identification on Win.

This enables tools such as TaskInfo to report the thread name directly.
master
madmaxoft 2013-08-11 20:22:42 +02:00
parent 4c5590636c
commit ac9224da91
1 changed files with 2 additions and 0 deletions

View File

@ -57,7 +57,9 @@ private:
static DWORD_PTR __stdcall thrExecute(LPVOID a_Param)
{
HWND IdentificationWnd = CreateWindow("STATIC", ((cIsThread *)a_Param)->m_ThreadName.c_str(), 0, 0, 0, 0, WS_OVERLAPPED, NULL, NULL, NULL, NULL);
((cIsThread *)a_Param)->Execute();
DestroyWindow(IdentificationWnd);
return 0;
}