Re: [AD] Proposal for an input model

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


In reply to Eric Botcazou <ebotcazou@xxxxxxxxxx>:
>I can think of three input models:

[snip - asynchronous, poll-only, polling with optional asynch]

I like the optional asynch, but please also consider:

4. Add a thread API, or tell people to use pthreads, and provide an
   example (or possibly even some functions) about how to have 
   `callbacks' anyway.

This has the advantage that it doesn't require much code / maintenance
and keeps the library simple and efficient, but the disadvantage that we
may upset coders by leaving too much up to them. Where to draw the line?

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



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