From b99ed2676a8b1eca4a1572576fbbec4a70054d9f Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 18 Jun 2016 17:20:40 +0300 Subject: [PATCH] Use NSThread instead of GDC when invoking run --- Cocoa/Document.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Cocoa/Document.m b/Cocoa/Document.m index 2fb1710..df5b007 100644 --- a/Cocoa/Document.m +++ b/Cocoa/Document.m @@ -118,9 +118,7 @@ static uint32_t rgbEncode(GB_gameboy_t *gb, unsigned char r, unsigned char g, un - (void) start { if (running) return; - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - [self run]; - }); + [[[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil] start]; } - (void) stop