Hi
Are there any plans to support a timeout for
bordeaux-threads:condition-wait? The implementations I'm
aware of support this threading primitive:
* ABCL could presumably do it since Java Object.wait can take a timeout
* SBCL supports it using sb-thread:condition-wait with keyword :timeout [1]
* anything with POSIX threads underneath could use pthread_cond_timedwait
The main variation seems to be between those implementations that
use an absolute time and those that use a relative time (how long
to wait in milliseconds for example).
Since I think I need this feature I might try to write a patch to
do this for ABCL and SBCL if there is nothing already in
the works (unless there is some technical problem I'm not seeing?)
Thanks
Thomas Munro
[1] http://random-state.net/log/3523852985.html
FYI there is a bug in ECL affecting bordeaux-threads-0.8.3.
(ql:quickload :bordeaux-threads)
(bt:make-thread (lambda ()))
There is no problem when bordeaux-threads is compiled for the first
time, however thereafter loading from fasls will result in
Condition of type: BORDEAUX-MP-CONDITION
There is no support for this method on this implementation.
The relevant ECL bug is http://sourceforge.net/p/ecls/bugs/261/
This does not affect bordeaux-threads-0.8.2.