GBA Thread: Make sure idle loop setting is set at the right time

This commit is contained in:
Jeffrey Pfau 2015-01-24 14:42:35 -08:00
parent dba275c570
commit 075308e837
1 changed files with 1 additions and 1 deletions

View File

@ -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);