How can I know if a fired timer has already been "invalidated"
using setFireDate? Consider the following pseudo-code:
- (void)dequeueNextOperation
{
// IF there is another operation in the queue
// Dequeue and start opertation...
// Start timeout timer for operation
/
1 PM, Ken Thomases wrote:
On Mar 19, 2009, at 1:51 PM, Robbie Hanson wrote:
However I'm not sure how safe it is to use the setFireDate method
of NSTimer. Consider the following code:
NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:0.2
I have a library that potentially creates and invalidates/destroys a
lot of NSTimers. Basically, users request operations to be completed
and they pass an optional timeout. If the operation completes in the
appropriate time, the timer is invalidated. Otherwise the timer
fires, and the op
___
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
multi-threaded-http-server.html
-Robbie Hanson
-Deusty Designs
___
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