Mail Archives: djgpp/1997/06/12/17:40:25
Paul Derbyshire writes:
>Will LWP work with Windows 95?
I've no idea: try it and see!
>Also, are Allegro functions non-reentrant?
As a rule, no. In particular anything that uses Allegro's global block
of scratch memory (bitmap stretching, polygon rasterising, floodfill,
and I think a few more that I can't remember right now), is 100% non-
reentrant, and the graphics routines all assume that they can set the
bank switch registers and have them stay set that way, so they will get
upset if more than one thread tries to draw graphics at the same time...
>If so, if only one thread uses them, is lwp_thread_disable needed?
I expect that just calling the routines from one thread would be safe,
as long as they aren't time-critical (stuff like the joystick polling
and retrace synchronisation is going to get upset if it is preempted at
the wrong time! :-)
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -