From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <654d53c4d1f6b9eee94b572acd25d545@plan9.escet.urjc.es> To: 9fans@cse.psu.edu Subject: Re: [9fans] qunlock From: "Fco. J. Ballesteros" Date: Thu, 24 Jun 2004 13:14:54 +0200 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: ab8d2760-eacd-11e9-9e20-41e7f4b1d025 > The purpose is to have multiple producers and consumers on an queue > with exclusive access, with priority always given to consumers if there > are waiting ones and the queue is not empty. Why don't you use channels to implement your sleep/wakeup mechanism. Using a lock to do so is weird for me, but perhaps others are used to it.