Re: [AD] Last iphone patch |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2010-12-03, at 10:15 PM, Thomas Fjellstrom wrote:
>> Consider adding al_rest() to the busy wait in
>> applicationDidEnterBackground: - the user may be busy with something,
>> and the busy wait will only take away more CPU time.
>
> If that really is an issue, a mutex or condition variable might be a better
> choice. Especially on a portable device.
Though I did change it to use a rest, it's not an issue. As I wrote in
the updated docs, the user should respond to SWITCH_OUT within a few
ms of getting the event.
--
Trent Gamblin