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

Re: NSThread


  • Subject: Re: NSThread
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 13 Jan 2015 16:18:55 +0000

> On 13 Jan 2015, at 16:07, Raglan T. Tiger <email@hidden> wrote:
>
> I allocate and init an NSThread as follows:
>
>        if ( m_mythread ) [m_mythread cancel];
>        m_mythread = [[MYThread alloc] initWithTarget:m_mythread selector:@selector(start) object:m_anobject];
>        [m_mythread start];
>
>
>
> I set a break in -start and see that this is a separate thread in my process ... so far so good.
>
> But, my UI becomes unresponsive.
>
> I understand that the main thread handles the UI so why would it become unresponsive?
>
> The overall behavior is as if the head code was executing in the main thread.
>
> Can some light be shed on this?
>
> I just did
>
>        [m_bfilenameListFromPath setThreadPriority:0.5];
>
> before
>
> 		[m_mythread start];
>
> with the same result :  unresponsive UI, wait cursor (beach ball) is displayed.

So you have a hang (by the sounds of it on OS X). Step 1 of diagnosis: take a sample.


_______________________________________________

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: NSThread
      • From: Mike Abdullah <email@hidden>
    • Re: NSThread
      • From: "Raglan T. Tiger" <email@hidden>
References: 
 >NSThread (From: "Raglan T. Tiger" <email@hidden>)

  • Prev by Date: NSThread
  • Next by Date: Re: Debugging memory leak in NSURLSession with ARC
  • Previous by thread: NSThread
  • Next by thread: Re: NSThread
  • Index(es):
    • Date
    • Thread