smithzvk / cl-plumbing

Some extra stream manipulation in Common Lisp.
15 stars 2 forks source link

Polling #3

Open phoe opened 5 years ago

phoe commented 5 years ago

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.

ghollisjr commented 2 years ago

PR #7 addresses this