delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/12/17:40:25

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
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: <pPG5HSA39qmzEwBE@talula.demon.co.uk>
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019