• 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: NSProgressIndicator and _heartBeatThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSProgressIndicator and _heartBeatThread


  • Subject: Re: NSProgressIndicator and _heartBeatThread
  • From: "Shawn Erickson" <email@hidden>
  • Date: Wed, 7 Feb 2007 10:01:38 -0800

On 2/7/07, Stephane <email@hidden> wrote:
If you set a NSProgressIndicator to run the indeterminate animation
in a separate thread (with setUsesThreadedAnimation:), a secondary
thread is created and it periodically calls [NSUIHeartBeat
_heartBeatThread:].

Let's say you then turn off the animation and remove the
ProgressIndicator from the window contents, this second thread is
still running.

Would there be a way to stop this secondary thread?

That thread is lazily created but once created it continues to exist to speed future animation startup rendering. When it has nothing to animate it sits blocked waiting for work. It only takes up a small amount of memory for the thread context and a little more for the thread's stack. I doubt you have a need to care about it existing.

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >NSProgressIndicator and _heartBeatThread (From: Stephane <email@hidden>)

  • Prev by Date: Re: NSProgressIndicator and _heartBeatThread
  • Next by Date: Re: NSProgressIndicator and _heartBeatThread
  • Previous by thread: Re: NSProgressIndicator and _heartBeatThread
  • Next by thread: Conditional OR for Enabled binding
  • Index(es):
    • Date
    • Thread