Then how do you check for the window resized event? I heard from IRC #plan9 that resize events are sent through /dev/mouse, so the following code is the event(2) way of ensuring resize events get done:

        for (;;)
                if (ecanmouse())
                        emouse();

On Nov 24, 2007, at 5:48 PM, Federico G. Benavento wrote:

You're not supposed to combine event(2) with thread(2).

See mouse(2).


Federico G. Benavento

---
/bin/fortune:
Steal money you're a thief: steal a country you're a king.

From: Pietro Gagliardi <[EMAIL PROTECTED]>
Date: November 24, 2007 11:21:57 AM EST
To: Fans of the OS Plan 9 from Bell Labs <[email protected]>
Subject: Re: [9fans] Attempt at making 3D graphics library
Reply-To: Fans of the OS Plan 9 from Bell Labs <[email protected]>



On Nov 24, 2007, at 11:00 AM, andrey mirtchovski wrote:

Use q to quit (and
crash, for some threadexitsall-related reason).

that usually means you need a bigger stack for your threads.
Setting both threads to 4096 stacksize fixed it. I'll note that in my tutorial. I used one thread to interpret mouse events, since for some odd reason eresized() is sent through the mouse. :-(



Reply via email to