thread debug info

This commit is contained in:
Glenn Maynard
2003-07-15 01:23:11 +00:00
parent 461e1bcf1a
commit 8f07ab28b2
2 changed files with 10 additions and 4 deletions
@@ -10,13 +10,10 @@
#include "archutils/Win32/AppInstance.h"
#include "InputFilter.h"
#include "PrefsManager.h"
#include "archutils/win32/tls.h"
#include "InputHandler_DirectInputHelper.h"
/*extern "C" {
extern HINSTANCE __declspec(dllimport) SDL_Instance;
};*/
static vector<DIDevice> Devices;
/* Number of joysticks found: */
@@ -432,6 +429,8 @@ void InputHandler_DInput::Update(float fDeltaTime)
void InputHandler_DInput::InputThread()
{
InitThreadData("DirectInput thread");
VDCHECKPOINT;
if(!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST))
LOG->Warn(werr_ssprintf(GetLastError(), "Failed to set DirectInput thread priority"));