diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2009-08-06 06:18:22 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2009-08-06 06:18:22 +0000 |
| commit | 95344be6744d444c76075f9ea4866c94fec6f43f (patch) | |
| tree | 8e0300df9495b3db84660538fcf95ab7cb7bc4da /Source/Core/Common/Src/Thread.cpp | |
| parent | 43adc4f194778fdd098cfd1c46217da9b6d29ecb (diff) | |
misc cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3942 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/Thread.cpp')
| -rw-r--r-- | Source/Core/Common/Src/Thread.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp index aa9f5c4a2e..0cd237e2f8 100644 --- a/Source/Core/Common/Src/Thread.cpp +++ b/Source/Core/Common/Src/Thread.cpp @@ -17,7 +17,7 @@ #include "Setup.h" #include "Thread.h" -#include "Log.h" +#include "Common.h" #ifdef USE_BEGINTHREADEX #include <process.h> @@ -37,7 +37,8 @@ CriticalSection::CriticalSection(int spincount) { if (spincount) { - InitializeCriticalSectionAndSpinCount(§ion, spincount); + if (!InitializeCriticalSectionAndSpinCount(§ion, spincount)) + ERROR_LOG(COMMON, "CriticalSection could not be initialized!\n%s", GetLastErrorMsg()); } else { @@ -195,6 +196,8 @@ typedef struct tagTHREADNAME_INFO // 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 void SetCurrentThreadName(const TCHAR* szThreadName) { THREADNAME_INFO info; |
