Use NSThread instead of GDC when invoking run

This commit is contained in:
Lior Halphon 2016-06-18 17:20:40 +03:00
parent 64832e0e9e
commit b99ed2676a
1 changed files with 1 additions and 3 deletions

View File

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