Re: [AD] Allegro on multi-processor machines

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


Evert Glebbeek wrote:
Also, can someone please explain again why with the following definitions

[snip]

XLOCK() and XUNLOCK() don't block indefinatebly?

Because, as Peter let on to, on the sigalrm version, the main program is stopped while the interrupt functions run. If an interrupt function tried to lock while the main program was already locked, the interrupt would then wait until the main program unlocks.. which would never happen because we'd be stuck in the interrupt function waiting.

- Kitty Cat




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