Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?
Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?
- Subject: Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?
- From: "Stephen J. Butler" <email@hidden>
- Date: Tue, 13 Mar 2012 16:53:06 -0500
On Tue, Mar 13, 2012 at 4:09 PM, JongAm Park <email@hidden> wrote:
> In other words, the thread function may want to update UI like inserting a
> log message to a text field on a window and thus asking main thread to do
> so, and main thread is waiting to acquire a lock or waiting using "Join",
> then either the main thread and the other thread can't progress.
You should really be rethinking your design if your main thread is
waiting on long held locks or waiting for threads to join. There are
ways around this, and the main thread shouldn't block long at all.
_______________________________________________
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