From 10688caf8efd91588307dbe823d8a2982bbdf4cf Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 24 Oct 2005 11:21:46 +0000 Subject: [PATCH] Use SetThreadPrecedence(). --- stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp b/stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp index 0e6064a486..7d45db5a89 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp @@ -15,6 +15,7 @@ #include "InputHandler_Carbon.h" #include "ForEach.h" #include "RageUtil.h" +#include "archutils/Darwin/DarwinThreadHelpers.h" using namespace std; using __gnu_cxx::hash_map; @@ -693,7 +694,10 @@ int InputHandler_Carbon::Run(void *data) (*i)->StartQueue( loopRef, InputHandler_Carbon::QueueCallBack, This, n++ ); This->mLoopRef = loopRef; - /* The function copies the information out of the structure, so the memory pointed + SetThreadPrecedence( 30 ); // Somewhat arbitrary but less than the sound decoding thread + + /* + * The function copies the information out of the structure, so the memory pointed * to by context does not need to persist beyond the function call. */ CFRunLoopObserverContext context = { 0, &This->mSem, NULL, NULL, NULL };