[Bordeaux-threads-devel] with-timeout abstraction leaks a bit?

Stelian Ionescu sionescu at cddr.org
Fri Dec 25 00:39:21 UTC 2009


On Fri, 2009-12-18 at 08:34 -0800, Peter Seibel wrote:
> I was using WITH-TIMEOUT the other day and it seems that it doesn't
> quite hide the underlying implementation quite enough: on SBCL it
> signals an SBCL-specific condition when it times out. Thus to handle
> the timeout you have to either handle that specific condition or
> something too broad (like CONDITION). Perhaps BT:WITH-TIMEOUT should
> handle the underlying condition and signal a BT-defined condition so
> this code can be written portably. I could provide a patch for SBCL
> (and probably Allegro) if folks think this is a good idea.

I've fixed this: now with-timeout will always signal bt:timeout - which
on SBCL is an alias for sb-ext:timeout

-- 
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/20091225/5ba2a5b6/attachment.sig>


More information about the bordeaux-threads-devel mailing list