summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-11 20:22:42 +0200
committermadmaxoft <github@xoft.cz>2013-08-11 20:22:42 +0200
commitac9224da919fb642aba8dde71d1c8deaf0cc8005 (patch)
tree4b6e753dfd13b71f5e2cdb6e768402fbb86d015d /source
parentEach world now ticks in a separate thread. (diff)
downloadcuberite-ac9224da919fb642aba8dde71d1c8deaf0cc8005.tar
cuberite-ac9224da919fb642aba8dde71d1c8deaf0cc8005.tar.gz
cuberite-ac9224da919fb642aba8dde71d1c8deaf0cc8005.tar.bz2
cuberite-ac9224da919fb642aba8dde71d1c8deaf0cc8005.tar.lz
cuberite-ac9224da919fb642aba8dde71d1c8deaf0cc8005.tar.xz
cuberite-ac9224da919fb642aba8dde71d1c8deaf0cc8005.tar.zst
cuberite-ac9224da919fb642aba8dde71d1c8deaf0cc8005.zip
Diffstat (limited to 'source')
-rw-r--r--source/OSSupport/IsThread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/OSSupport/IsThread.h b/source/OSSupport/IsThread.h
index e795b25a0..9b7f0b73e 100644
--- a/source/OSSupport/IsThread.h
+++ b/source/OSSupport/IsThread.h
@@ -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;
}