Re: [AD] Proposal for new branch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Angelo Mottola wrote:


Hmm, this depends on the implementation of al_rest(), in src/unix/utimer.c.


It currently uses select(). I #ifdeffed the MacOS X case, making it use usleep() and now it works correctly...


Ok, cool.

Anyway, I was looking at your code; I'm not sure if it'd be better to stick with vtables rather than implementing the needed functions directly for every port, as you currently do. A lot of code is duplicated this way, isn't it?


Yes.  A lot of the duplicated code should be merged together eventually.

vtables introduce overhead and are annoying (for reading, writing, experimenting, debugging...), so I didn't want to use them unnecessarily. But we can return to them later, if desired.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/