Re: [AD] Exorcising END_OF_MAIN for Allegro 5 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Exorcising END_OF_MAIN for Allegro 5
- From: Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx>
- Date: Mon, 14 Jul 2008 01:36:51 -0600
On July 14, 2008, Peter Hull wrote:
> On 7/14/08, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> > The problem used to be that one of the Mac libraries needed to take over
> > the main thread, so we had to relegate the user's code to another
> > thread. I hope it has changed.
>
> Right, the OS will only deliver events to the main thread but in
> Allegro 4 there was nowhere in the user's code where we could reliably
> receive and dispatch the events. Magic main is used to run the user's
> main() in a second thread. A5 uses the same design at the moment. We
> could get around this if we require the user to call al_wait_for_event
> regularly (which I think is not the current case) or figure out some
> way to return from al_init but in a different thread (longjmp,
> ucontext or similar)
So we aren't making people use the new event system? that would be the optimal
place to handle OS events...
> Pete
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx