• 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: Spinning the busy indicator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spinning the busy indicator


  • Subject: Re: Spinning the busy indicator
  • From: Graham Cox <email@hidden>
  • Date: Fri, 01 May 2015 09:39:37 +1000

> Did you set your progress indicator to indeterminate? If not, it’s not going to animate.
>


As I mentioned it’s the spinning busy indicator, which is always indeterminate.



Something odd is happening, which may or may not have an effect on the busy indicator (which is a minor annoyance, but possibly an indication of a much more major problem).

When I start my threaded operations, my main loop generally remains responsive and as each operation block completes, it updates a view (via the main thread) and I see those updates arriving as they complete as intended. I can also interact with the view while this is happening, so I can see that events are being processed and handled by the view as normal.

But when I click in the menubar, the main thread suddenly blocks as given by the stack trace in my previous message. It remains blocked until all of the pending operations complete.

My menubar does not have any hooks into my app’s code at all - I’m not even implementing menu item validation at the moment. What could the menubar click be waiting on that matters? If it’s “normal” that clicking in the menubar blocks the main thread while there is an operation queue with unfinished tasks that has nothing to do with it, then I think that’s got to be a bug in the OS - it just doesn’t make sense.

This is a much more serious issue than the busy indicator animation, but something tells me it may be related in some way, though I’m not really seeing what it is at the moment.

A general question - given a blocked lock (semaphore_wait_trap), how can I discover in the debugger what other threads or code is holding that lock?


—Graham



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Spinning the busy indicator
      • From: Quincey Morris <email@hidden>
References: 
 >Spinning the busy indicator (From: Graham Cox <email@hidden>)
 >Re: Spinning the busy indicator (From: Quincey Morris <email@hidden>)

  • Prev by Date: Parent/child view controllers: when shall we use it?
  • Next by Date: Re: Spinning the busy indicator
  • Previous by thread: Re: Spinning the busy indicator
  • Next by thread: Re: Spinning the busy indicator
  • Index(es):
    • Date
    • Thread