• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple problems caused by changing NSThread sleepUntilDate interval
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Multiple problems caused by changing NSThread sleepUntilDate interval (From: Mike Brinkman <email@hidden>)

  • Prev by Date: Row moving [source]
  • Next by Date: Re: selecting a single cell in NSTableView?
  • Previous by thread: Multiple problems caused by changing NSThread sleepUntilDate interval
  • Next by thread: Re: Multiple problems caused by changing NSThread sleepUntilDate interval
  • Index(es):
    • Date
    • Thread