From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] Attempt at making 3D graphics library From: "Federico G. Benavento" Date: Sat, 24 Nov 2007 19:48:11 -0300 In-Reply-To: <9BD59CB3-3F41-415B-AC30-39773DDF99C2@mac.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-wfyhvztmiosqysmvxgezesywmp" Topicbox-Message-UUID: 0ad0207e-ead3-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-wfyhvztmiosqysmvxgezesywmp Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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. --upas-wfyhvztmiosqysmvxgezesywmp Content-Type: message/rfc822 Content-Disposition: inline Delivered-To: benavento@gmail.com Received: by 10.141.91.14 with SMTP id t14cs437095rvl; Sat, 24 Nov 2007 08:22:18 -0800 (PST) Received: by 10.141.22.1 with SMTP id z1mr241189rvi.1195921338480; Sat, 24 Nov 2007 08:22:18 -0800 (PST) Return-Path: <9fans-bounces+benavento=gmail.com@cse.psu.edu> Received: from mail.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mx.google.com with ESMTP id k3si3737612rog.2007.11.24.08.22.18; Sat, 24 Nov 2007 08:22:18 -0800 (PST) Received-SPF: pass (google.com: domain of 9fans-bounces+benavento=gmail.com@cse.psu.edu designates 130.203.4.6 as permitted sender) client-ip=130.203.4.6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of 9fans-bounces+benavento=gmail.com@cse.psu.edu designates 130.203.4.6 as permitted sender) smtp.mail=9fans-bounces+benavento=gmail.com@cse.psu.edu Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id E0823109CC for ; Sat, 24 Nov 2007 11:22:17 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 5E8BD10452 for <9fans@cse.psu.edu>; Sat, 24 Nov 2007 11:22:05 -0500 (EST) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20561-02-88 for <9fans@cse.psu.edu>; Sat, 24 Nov 2007 11:22:01 -0500 (EST) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.72]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 7026D108F1 for <9fans@cse.psu.edu>; Sat, 24 Nov 2007 11:22:01 -0500 (EST) Received: from mac.com (asmtp007-s [10.150.69.70]) by smtpoutm.mac.com (Xserve/smtpout009/MantshX 4.0) with ESMTP id lAOGM0d0019824 for <9fans@cse.psu.edu>; Sat, 24 Nov 2007 08:22:00 -0800 (PST) Received: from [24.185.117.0] (ool-18b97500.dyn.optonline.net [24.185.117.0]) (authenticated bits=0) by mac.com (Xserve/asmtp007/MantshX 4.0) with ESMTP id lAOGLvl8002266 for <9fans@cse.psu.edu>; Sat, 24 Nov 2007 08:21:58 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <14ec7b180711240800k320b4c08i3945e4979bd8eaf7@mail.gmail.com> References: <217E2E30-ED7F-40A8-9C11-7D0689255996@mac.com> <74BC7D07-43D3-4DA1-B0ED-1F1C4615DB2B@mac.com> <14ec7b180711240800k320b4c08i3945e4979bd8eaf7@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9BD59CB3-3F41-415B-AC30-39773DDF99C2@mac.com> Content-Transfer-Encoding: 7bit From: Pietro Gagliardi Subject: Re: [9fans] Attempt at making 3D graphics library Date: Sat, 24 Nov 2007 11:21:57 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+benavento=gmail.com@cse.psu.edu Errors-To: 9fans-bounces+benavento=gmail.com@cse.psu.edu 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. :-( --upas-wfyhvztmiosqysmvxgezesywmp--