On 29 Sep 2009, at 22:30, Wim Lewis wrote:

And what about two timers, i.e., what happens, if one of them fires while the method associated with the other one is till executing?

It won't be able to fire until control returns to the runloop in some way.

Which is why NSTime only guarantees that a timer will not fire before the date you set for it. If the thread it's scheduled on is blocked then it can potentially fire much later.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to