From 075308e837ea70061044e6a6bc0b1b3015ccb084 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 24 Jan 2015 14:42:35 -0800 Subject: [PATCH] GBA Thread: Make sure idle loop setting is set at the right time --- src/gba/gba-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/gba-thread.c b/src/gba/gba-thread.c index f34130ce5..8cb6e2a29 100644 --- a/src/gba/gba-thread.c +++ b/src/gba/gba-thread.c @@ -124,6 +124,7 @@ static THREAD_ENTRY _GBAThreadRun(void* context) { gba.sync = &threadContext->sync; threadContext->gba = &gba; gba.logLevel = threadContext->logLevel; + gba.idleOptimization = threadContext->idleOptimization; #ifdef USE_PTHREADS pthread_setspecific(_contextKey, threadContext); #else @@ -173,7 +174,6 @@ static THREAD_ENTRY _GBAThreadRun(void* context) { GBASIOSetDriverSet(&gba.sio, &threadContext->sioDrivers); gba.keySource = &threadContext->activeKeys; - gba.idleOptimization = threadContext->idleOptimization; if (threadContext->startCallback) { threadContext->startCallback(threadContext);