all repos — mgba @ ea41ef7ae6c57c9b604e61ad6251935aef0b00e9

mGBA Game Boy Advance Emulator

Fix main thread stalling when starting a game
Jeffrey Pfau jeffrey@endrift.com
Thu, 17 Oct 2013 23:10:16 -0700
commit

ea41ef7ae6c57c9b604e61ad6251935aef0b00e9

parent

62d941a979255f695da2a073813ad05f70df2ec8

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-thread.csrc/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);