• 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?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sleep?


  • Subject: Re: Sleep?
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 10 Nov 2005 11:34:53 +0100


Am 09.11.2005 um 17:53 schrieb Brian O'Brien:
I am trying to get a thread class debugged and I am trying to simulate a
thread routine that takes a few seconds to complete and then finishes...

In that case, I think *sleep() is what you *don't* want. Sleep will suspend that thread for that long. If you actually want to test how something doing work would interact with your code, then this is the one exception to the rule where you'd want to just write an empty loop that burns cycles.


Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Sleep? (From: "Brian O'Brien" <email@hidden>)
 >Re: Sleep? (From: j o a r <email@hidden>)
 >Re: Sleep? (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: Custom Attributes
  • Next by Date: Re: Single tabview item appears off center
  • Previous by thread: Re: Sleep?
  • Next by thread: splash screen with a status text field
  • Index(es):
    • Date
    • Thread