[Bordeaux-threads-devel] CONDITION-WAIT with timeout
Stelian Ionescu
sionescu at cddr.org
Tue Apr 17 14:11:37 UTC 2012
On Wed, 2012-04-04 at 22:33 +0100, Thomas Munro wrote:
> 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?)
I'd like to, but what do we do for those implementations that don't
support timeouts ?
--
Stelian Ionescu a.k.a. fe[nl]ix
Quidquid latine dictum sit, altum videtur.
http://common-lisp.net/project/iolib
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/bordeaux-threads-devel/attachments/20120417/57d5530d/attachment.sig>
More information about the bordeaux-threads-devel
mailing list