Re: Multiple problems caused by changing NSThread sleepUntilDate interval
Re: Multiple problems caused by changing NSThread sleepUntilDate interval
- Subject: Re: Multiple problems caused by changing NSThread sleepUntilDate interval
- From: Jeff Biggus <email@hidden>
- Date: Sun, 1 Feb 2004 21:05:10 -0600
On Feb 1, 2004, at 8:34 PM, Mike Brinkman wrote:
[NSThread sleepUntilDate:[NSDate
dateWithTimeIntervalSinceNow:0.02]];
Not sure why the errors happen, but perhaps switch to the C call:
usleep(20000);
That should just delay the thread it's in. Also should be more
accurate, since it cuts down on the message calling, unless the
compiler has optimized that combo of class methods.
-Jeff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.