From: Jay Freeman (saurik) Date: Fri, 25 Feb 2011 21:10:45 +0000 (-0800) Subject: Add _trace() debugging for yieldToSelector: run loop. X-Git-Tag: v1.1.0%b1~174 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/e324d1edab22ed45e38aaf028b1af51460892151 Add _trace() debugging for yieldToSelector: run loop. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 0ca3ebbb..da8ef753 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -320,7 +320,9 @@ static _finline void UpdateExternalStatus(uint64_t newStatus) { NSDate *future([NSDate distantFuture]); NSString *mode([loop currentMode] ?: NSDefaultRunLoopMode); +_trace(); while (!stopped && [loop runMode:mode beforeDate:future]); +_trace(); return [context count] == 0 ? nil : [context objectAtIndex:0]; }