Add semaphores abstraction to bordeaux-threads
commit466284f3ab2b3a76141e83641df9487843b04d9e
authorDaniel Kochmanski <daniel@turtleware.eu>
Mon, 18 Dec 2017 21:30:54 +0000 (18 22:30 +0100)
committerStelian Ionescu <sionescu@cddr.org>
Tue, 8 May 2018 20:11:50 +0000 (8 22:11 +0200)
treee0ce9578e3ae4e98b179350df5650ca72059f4b1
parentb3f1964e1a2b84459bb50f0323ac7e0cd6e38a36
Add semaphores abstraction to bordeaux-threads

- default implementation works on top of mutex + cv;
- implementations for CCL and SBCL map to native interfaces.

Notes:

- initially we planned semaphore-count but CCL doesn't have it exported;
- generic implementation works only if CV and LOCKs are implemented correctly;
- minimal test suite is implemented.
CONTRIBUTORS
src/bordeaux-threads.lisp
src/default-implementations.lisp
src/impl-clozure.lisp
src/impl-sbcl.lisp
src/pkgdcl.lisp
test/bordeaux-threads-test.lisp