From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6ef91f1149bcb15fc3f307c5bec98c41@swtch.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] Plan9Ports libdraw open-in-same-window From: "Russ Cox" Date: Thu, 9 Mar 2006 22:34:37 -0500 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 10c24a22-ead1-11e9-9d60-3106f5b1d025 > I've been recycling the drawable, but I need to keep a cross-process > lock there; what's a good way to keep a lock in P9P? I don't know how you keep a cross-process lock anywhere. In Plan 9, rio provides the terminal windows - there is no 9term. If an app opens /dev/mouse (which rio provides), then rio knows an app is taking over the window and stops doing the terminal things for that window. You can't run sam inside acme - only one program can open /dev/mouse at a time. I'm less worried about sam inside acme than I am about programs fighting over windows because of lack of coordination. It sounds like this requires significant coordination between the programs. Russ