From hoan at ton-that.org Wed Jun 14 06:01:58 2006 From: hoan at ton-that.org (Hoan Ton-That) Date: Wed, 14 Jun 2006 16:01:58 +1000 Subject: [Bordeaux-threads-devel] Condition wait Message-ID: Greg, I'm writing CL-STM, and I was wondering if we could change `condition-wait' to take the lock as an optional argument? At the moment, I'm acquiring a dummy lock, and then using `condition-wait' on it. What do you think? Hoan From hoan at ton-that.org Wed Jun 21 13:00:18 2006 From: hoan at ton-that.org (Hoan Ton-That) Date: Wed, 21 Jun 2006 23:00:18 +1000 Subject: [Bordeaux-threads-devel] Condition wait In-Reply-To: <07F9C00C-EE31-4910-BA56-FBB156FD4C1E@mac.com> References: <07F9C00C-EE31-4910-BA56-FBB156FD4C1E@mac.com> Message-ID: Hey Greg, > This sounds like a reasonable request. Let me get your usage correct: > you want to wait on a condition variable, but the actions you carry > out don't have any shared state, and therefore don't require a lock > to be used? Thats exactly right. I could be misusing condition variables though. I could hack up support for OpenMCL if you'd want. I'm not sure that CMUCL and SBCL have support for notifying a condition variable without locking and unlocking. OpenMCL does. Hoan From sellout42 at mac.com Sat Jun 17 04:32:22 2006 From: sellout42 at mac.com (Greg Pfeil) Date: Fri, 16 Jun 2006 21:32:22 -0700 Subject: [Bordeaux-threads-devel] Condition wait In-Reply-To: References: Message-ID: <07F9C00C-EE31-4910-BA56-FBB156FD4C1E@mac.com> On 13 Jun 2006, at 23:01, Hoan Ton-That wrote: > I'm writing CL-STM, and I was wondering if we could > change `condition-wait' to take the lock as an optional > argument? At the moment, I'm acquiring a dummy lock, > and then using `condition-wait' on it. What do you think? This sounds like a reasonable request. Let me get your usage correct: you want to wait on a condition variable, but the actions you carry out don't have any shared state, and therefore don't require a lock to be used? I'll mull it over a bit longer to see if I can think of any issues (although none come to mind immediately), and I'll release 0.0.2, since there have also been some other changes (especially regarding support for ABCL). -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: