diff options
author | Vitor K <vitor-kiguchi@hotmail.com> | 2020-03-25 20:33:37 +0100 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2020-04-01 02:58:42 +0200 |
commit | bd0c56c6e7ad506d7123c7e3aca85bd037275a5c (patch) | |
tree | 62310f3ebd52770cbf3ff8313c03be889a4e83c5 /src/common/thread.cpp | |
parent | Merge pull request #3565 from ReinUsesLisp/image-format (diff) | |
download | yuzu-bd0c56c6e7ad506d7123c7e3aca85bd037275a5c.tar yuzu-bd0c56c6e7ad506d7123c7e3aca85bd037275a5c.tar.gz yuzu-bd0c56c6e7ad506d7123c7e3aca85bd037275a5c.tar.bz2 yuzu-bd0c56c6e7ad506d7123c7e3aca85bd037275a5c.tar.lz yuzu-bd0c56c6e7ad506d7123c7e3aca85bd037275a5c.tar.xz yuzu-bd0c56c6e7ad506d7123c7e3aca85bd037275a5c.tar.zst yuzu-bd0c56c6e7ad506d7123c7e3aca85bd037275a5c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/thread.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp index fe7a420cc..0cd2d10bf 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -28,11 +28,8 @@ namespace Common { #ifdef _MSC_VER // Sets the debugger-visible name of the current thread. -// Uses undocumented (actually, it is now documented) trick. -// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vxtsksettingthreadname.asp - -// This is implemented much nicer in upcoming msvc++, see: -// http://msdn.microsoft.com/en-us/library/xcb2z8hs(VS.100).aspx +// Uses trick documented in: +// https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-set-a-thread-name-in-native-code void SetCurrentThreadName(const char* name) { static const DWORD MS_VC_EXCEPTION = 0x406D1388; @@ -47,7 +44,7 @@ void SetCurrentThreadName(const char* name) { info.dwType = 0x1000; info.szName = name; - info.dwThreadID = -1; // dwThreadID; + info.dwThreadID = std::numeric_limits<DWORD>::max(); info.dwFlags = 0; __try { |