开发者

performSelector:onThread: when the target thread is blocked

开发者 https://www.devze.com 2022-12-28 03:19 出处:网络
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

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

精彩评论

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