Dear SBCL developers,
in search for a SBCL replacement for CMUCL's MP:QUEUE class,
I made the SB-THREAD:WAITQUEUE structure behave in a FIFO way
rather than LIFO, as far as activating waiting threads goes.
The patch modifies file src/code/target-thread.lisp,
and adds a small implementation of FIFO queues as a defstruct.
I tried not to do anything obviously stupid,
but then again there may be subtleties that evade me.
I didn't test the patch thoroughly yet
(will hopefully put it to good use with bknr next week),
but I tried tests/threads.impure.lisp and it looked like it work.
[ Fran=E7ois-Ren=E9 =D0VB Rideau | Reflection&Cybernethics | http://fare.=
[ TUNES project for a Free Reflective Computing System | http://tunes.o=
A flea and a fly in a flue
were imprisoned, so what could they do?
Said the fly: "let us flee!".
Said the flea: "let us fly!".
So they flew thru a flaw in the flue...