OS X: change the dispatch_async in the freeze block to dispatch_after.
This makes it look cleaner. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@92247 e17a0e51-4ae3-4d35-97c3-1a29b211df97
This commit is contained in:
parent
8504c3e708
commit
eded81ac8a
|
@ -589,10 +589,7 @@ otherblock();\
|
|||
NSString *path = FileTestBlock();
|
||||
LaunchArg *larg = [[LaunchArg alloc] initWithLaunchOrder:LaunchArgPostRun argument:kPCSXRArgumentFreeze block:^{
|
||||
if (![EmuThread isRunBios]) {
|
||||
// TODO: use another API to put up a timer, instead of sleeping
|
||||
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
||||
//Make sure the emulator is running
|
||||
sleep(5);
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)), dispatch_get_global_queue(0, 0), ^{
|
||||
[EmuThread defrostAt:path];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user