From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: LWP and Win 95 Date: Sun, 8 Jun 1997 14:11:19 +0100 Organization: None Distribution: world Message-ID: References: <5n89ao$cme AT freenet-news DOT carleton DOT ca> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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.