Re: Serial IO seems to be starving UI
Re: Serial IO seems to be starving UI
- Subject: Re: Serial IO seems to be starving UI
- From: Peter N Lewis <email@hidden>
- Date: Sun, 1 Feb 2009 21:46:47 +0900
At 0:21 -0500 31/1/09, Michael Ash wrote:
And even there, a continuous
sequence of 0-delay performs should not lock the user out of your
program. Seems to me that most non-user events should be interleaved
in with user events based on when they occur, or at the very least
given equal time. It's too easy to lock up the main event loop such
that the user can no longer do anything otherwise.
Yes, this can be really annoying. I ran in to it on the iPhone,
where if you run a sequence of actions say every 0.01 seconds, but
your action takes longer than 0.01 seconds and then the phone
entirely stops accepting UI which is problematic to say the least.
And very confusing to debug.
It's actually good to learn *why* this was happening!
Peter.
--
Keyboard Maestro 3 Now Available!
Now run macros from your iPhone with Keyboard Maestro Control!
Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
<http://www.stairways.com/> <http://download.stairways.com/>
_______________________________________________
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