From sionescu at cddr.org Sat Sep 14 17:50:54 2013 From: sionescu at cddr.org (Stelian Ionescu) Date: Sat, 14 Sep 2013 19:50:54 +0200 Subject: [Bordeaux-threads-devel] CONDITION-WAIT with timeout In-Reply-To: References: <1334671897.15697.7.camel@cathai> Message-ID: <1379181054.3855.0.camel@cathai> On Sat, 2013-09-14 at 12:07 -0400, James M. Lawrence wrote: > I have added a :timeout option to condition-wait. > > git pull https://github.com/lmj/bordeaux-threads > > Tested on ABCL, Allegro, CLISP, Clozure, ECL, LispWorks 6.1, and SBCL. > > I don't have SCL, but if the documentation is correct then it should be OK. Please make a pull request. -- 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: From llmjjmll at gmail.com Sat Sep 14 16:07:52 2013 From: llmjjmll at gmail.com (James M. Lawrence) Date: Sat, 14 Sep 2013 12:07:52 -0400 Subject: [Bordeaux-threads-devel] CONDITION-WAIT with timeout In-Reply-To: References: <1334671897.15697.7.camel@cathai> Message-ID: I have added a :timeout option to condition-wait. git pull https://github.com/lmj/bordeaux-threads Tested on ABCL, Allegro, CLISP, Clozure, ECL, LispWorks 6.1, and SBCL. I don't have SCL, but if the documentation is correct then it should be OK. On Tue, Apr 17, 2012 at 8:20 PM, Thomas Munro wrote: > On 17 April 2012 15:11, Stelian Ionescu wrote: >> I'd like to, but what do we do for those implementations that don't >> support timeouts ? > > I went through the existing implementations and googled for > timeout variants of the mechanisms being used and found these: > > ABCL: (threads:object-wait condition timeout) > Allegro: ? > Clisp: (mt:exemption exemption mutex :timeout timeout) > Clozure: (ccl:timed-wait-on-semaphore semaphore timeout) > CMUCL: ? > Corman: ? > ECL: (mp:condition-variable-timedwait condition mutex timeout) > LispWorks simulated: ? > LispWorks 6: (mp:condition-variable-wait condition mutex :timeout timeout) > MCL: ? > SBCL: (sb-thread:condition-wait condition mutex :timeout timeout) > SCL: (thread:cond-var-timedwait condition mutex timeout) > > I couldn't immediately grok those with question marks, but I > suspect it's possible for most of them though. I hope someone > who knows those systems can comment. > > I don't have any suggestion on what to do if there is no > implementation apart from the obvious and unsatisfactory 'raise > an error at runtime'. > > _______________________________________________ > Bordeaux-threads-devel mailing list > Bordeaux-threads-devel at common-lisp.net > http://lists.common-lisp.net/cgi-bin/mailman/listinfo/bordeaux-threads-devel