mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 10:42:46 +02:00
Use NSThread instead of GDC when invoking run
This commit is contained in:
@@ -118,9 +118,7 @@ static uint32_t rgbEncode(GB_gameboy_t *gb, unsigned char r, unsigned char g, un
|
|||||||
- (void) start
|
- (void) start
|
||||||
{
|
{
|
||||||
if (running) return;
|
if (running) return;
|
||||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
[[[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil] start];
|
||||||
[self run];
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) stop
|
- (void) stop
|
||||||
|
Reference in New Issue
Block a user