From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <03d101c45966$dcc2d9b0$08fa7d50@SOMA> From: "boyd, rounin" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> References: Subject: Re: [9fans] qunlock Date: Wed, 23 Jun 2004 23:12:58 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: ab4abaec-eacd-11e9-9e20-41e7f4b1d025 restructure the code and make sure you lock/unlock in the same 'order': lock: A B C D E unlock: E D C B A you could use canlock, but i think yer inviting races. and get _rid_ of those gotos!