Fix main thread stalling when starting a game
Jeffrey Pfau jeffrey@endrift.com
Thu, 17 Oct 2013 23:10:16 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba-thread.c
→
src/gba/gba-thread.c
@@ -139,6 +139,7 @@ pthread_mutex_lock(&threadContext->stateMutex);
threadContext->activeKeys = 0; threadContext->state = THREAD_INITIALIZED; threadContext->sync.videoFrameOn = 1; + threadContext->sync.videoFrameSkip = 0; pthread_create(&threadContext->thread, 0, _GBAThreadRun, threadContext); pthread_cond_wait(&threadContext->stateCond, &threadContext->stateMutex); pthread_mutex_unlock(&threadContext->stateMutex);