开发者

performSelector:onThread: when the target thread is blocked

Yes, I'm being lazy.

What happens when I call performSelector:onThread:... and pass in a thread that's currently blocked (on synchronous I/O, for instance)? Does the s开发者_如何学JAVAelector just get queued to be executed later?


Yep. I'm pretty sure it gets added to the thread's runloop so it will be performed on the next iteration.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜