Re: Asynchronous keyboard callbacks (was: [AD] Proposal for an input model) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> blocking reads are the standard way to do this, yes. either
> that or select. select gives you the ability to timeout as well,
> which i think can't be done with read. though in this case
> there probably is no advantage to this.
Using select() has a big advantage: multiplexing. You can block on several
file descriptors simultaneously.
--
Eric Botcazou
ebotcazou@xxxxxxxxxx