mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-15 23:01:39 +00:00
misc cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3942 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
43adc4f194
commit
95344be674
10 changed files with 52 additions and 46 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue