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