sb-concurrency: GATE tweak, fix building without threads
authorNikodemus Siivola <nikodemus@random-state.net>
Mon, 14 Nov 2011 13:56:09 +0000 (15:56 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Mon, 14 Nov 2011 14:19:52 +0000 (16:19 +0200)
commit18a1f7605aa95cb84282900298c369514e9d49c2
treeb42b96721cba7afcaf4b12191016b90b7fbe14b0
parente034d6a8d034a3f8ca755bf89fae850f6387c505
sb-concurrency: GATE tweak, fix building without threads

 * OPEN-GATE wasn't interrupt-safe. Don't want to have an interrupt unwind
   after opening the gate but before broadcasting on the condition variable.

 * Disable tests needing threads on unithread builds, add one that
   doesn't need threads.

 Also: many thanks to Tobias Rittweiler on whose code the GATE implementation
 is based!
contrib/sb-concurrency/gate.lisp
contrib/sb-concurrency/tests/test-gate.lisp