currentMode
)CFRunLoopSourceSignal(source)
将 Source 标记为待处理CFRunLoopWakeUp(runloop)
唤醒 RunLoop,让其处理事件struct __CFRunLoopMode { CFStringRef _name; // Mode Name, 例如 @”kCFRunLoopDefaultMode” CFMutableSetRef _sources0; // Set CFMutableSetRef _sources1; // Set CFMutableArrayRef _observers; // Array CFMutableArrayRef _timers; // Array … };
struct __CFRunLoop { CFMutableSetRef _commonModes; // Set CFMutableSetRef _commonModeItems; // Set<Source/Observer/Timer> CFRunLoopModeRef _currentMode; // Current Runloop Mode CFMutableSetRef _modes; // Set … };
Common
属性
setNeedsLayout/setNeedsDisplay
performSelecter:afterDelay:
performSelector:onThread: