Mail Archives: djgpp/1997/06/19/23:23:15
Paul Derbyshire writes:
>> I found the only really stable solution was not to draw anything
>> inside the mouse callback (I use int 0x33) at all! Instead, I just
>> store the mouse position and set a flag in the callback function, and
>> then later draw the pointer from my timer interrupt handler...
>
>I guess the difference is the timer interrupt, which *you* control, is
>less frequent than the mouse interrupt...and spaced further apart than
>the execution time for the drawing handler?
Also, the timer interrupt uses my own reentrant IRQ wrapper, so it
doesn't matter how long the drawing takes, wheras the mouse uses an RMCB
created by the libc code (non-reentrant). And who knows if the mouse
driver itself is smart enough to deal with reentrancy?
--
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 -