• 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: sleep() vs sleepUntilDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sleep() vs sleepUntilDate


  • Subject: Re: sleep() vs sleepUntilDate
  • From: Lance Bland <email@hidden>
  • Date: Mon, 23 Sep 2002 10:45:31 -0400

On Monday, September 23, 2002, at 09:19 AM, Peter Sichel wrote:

> sleep() -
>
> Is almost useless to Cocoa developers. It sleeps your process
> to allow other BSD commands to execute. It's granularity is limited
> to seconds.

It is useful, it works, it does not block other threads in the same
process, and there are also these:

sleep(); // seconds
usleep(); microseconds
nanosleep(); // nanoseconds. I have not used this personally, and the
prototype is not in the 10.1 headers.

and they all work with NSThread.

------------------------------------
Lance Bland
mailto:email@hidden
VVI Is The #1 Visual-Report Tool Developer For Mac OS X
http://www.vvi.com
_______________________________________________
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: 
 >Re: sleep() vs sleepUntilDate (From: Peter Sichel <email@hidden>)

  • Prev by Date: TrivialThread and factory objects
  • Next by Date: Re: NSMutableNumber?
  • Previous by thread: Re: sleep() vs sleepUntilDate
  • Next by thread: Problem killing my threads :)
  • Index(es):
    • Date
    • Thread