开发者

How to create custom CFRunLoopRef in iPhone

开发者 https://www.devze.com 2023-02-01 09:51 出处:网络
How to 开发者_C百科create custom CFRunLoopRef in iPhone ?You don\'t create them. Instead, each thread has one associated with it, which you can get with CFRunLoopGetCurrent(). That run loop is going t

How to 开发者_C百科create custom CFRunLoopRef in iPhone ?


You don't create them. Instead, each thread has one associated with it, which you can get with CFRunLoopGetCurrent(). That run loop is going to be inactive on any secondary thread you spawn, so you must start it with CFRunLoopRun(), which will then block on that secondary thread until it is stopped or until all its timers/sources are unscheduled.

0

精彩评论

暂无评论...
验证码 换一张
取 消