Re: [AD] [LNX] Mode-X and threads and mouse

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


On 2001-11-30, Eric Botcazou <ebotcazou@xxxxxxxxxx> wrote:
> > A segfault occurs under Linux console when using mode-X and the mouse
> > and the mouse pointer is visible and threads are in use.  The problem
> > is that input is now handled in a thread, so when the mouse moves we
> > end up calling mode-X drawing from that thread.
> 
> Not rather from the timer thread ?

Yes, you're right.  From the timer thread.

> The problem comes from selecting the Mode-X planes in the asm code,
> specifically lines 773, 899 and 1631 in src/misc/modexgfx.s: if they are
> commented out, there is no more segfault.

(You mean 770, 896, 1628.) I suppose those functions are not reentrant
so we need a lock of some sort?



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