RunLoop

In OSX/iOS system, two such objects are provided: NSRunLoop and CFRunLoopRef.
CFRunLoopRef is within the CoreFoundation framework and provides an API for pure C functions, all of which are thread-safe.
NSRunLoop is a wrapper based on CFRunLoopRef and provides object-oriented APIs, but these APIs are not thread-safe.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324457476&siteId=291194637