开发者

How to create custom CFRunLoopRef in iPhone

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜