Open phoe opened 5 years ago
The sleep calls in the code could be replacing by using a bordeaux-threads condition variable.
sleep
See the macroexpansion of define-locking-fn push-cons-queue in https://github.com/lmj/lparallel/blob/master/src/queue.lisp for an example of using condition variables for implementing queues.
define-locking-fn push-cons-queue
PR #7 addresses this
The
sleep
calls in the code could be replacing by using a bordeaux-threads condition variable.See the macroexpansion of
define-locking-fn push-cons-queue
in https://github.com/lmj/lparallel/blob/master/src/queue.lisp for an example of using condition variables for implementing queues.