From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA32086; Tue, 3 Sep 2002 21:56:33 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA32470 for ; Tue, 3 Sep 2002 21:56:32 +0200 (MET DST) Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g83JuVL07388 for ; Tue, 3 Sep 2002 21:56:31 +0200 (MET DST) Received: from mel-rta8.wanadoo.fr (193.252.19.79) by mel-rto2.wanadoo.fr (6.5.007) id 3D5392B600AF3039 for caml-list@inria.fr; Tue, 3 Sep 2002 21:56:31 +0200 Received: from gogol (80.9.110.85) by mel-rta8.wanadoo.fr (6.5.007) id 3D6EE81B002610FA; Tue, 3 Sep 2002 21:56:31 +0200 Received: from berke by gogol with local (Exim 3.35 #1 (Debian)) id 17mJpA-0000il-00; Tue, 03 Sep 2002 21:58:56 +0200 Date: Tue, 3 Sep 2002 21:58:55 +0200 From: Berke Durak To: =?iso-8859-1?Q?Micha=EBl_Gr=FCnewald?= Cc: caml-list@inria.fr Subject: [Caml-list] Graphics and Thread (was: Two severe limitations in Graphics module) Message-ID: <20020903195855.GA304@gogol> References: <20020827203437.GA326@gogol> <87u1lfikjx.fsf@ketanu.dyndns.org> <20020829110615.GB304@gogol> <878z2pwl4a.fsf@ketanu.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878z2pwl4a.fsf@ketanu.dyndns.org> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Aug 29, 2002 at 08:55:17PM +0200, Michaël Grünewald wrote: > Berke Durak writes: > > > On Wed, Aug 28, 2002 at 08:06:42AM +0200, Michaël Grünewald wrote: > > > 1/You may have two threads, the first will watch the keyboard > > > (wait_next_event), the second will update puzzle tiles positions, both will > > > send events to your main loop, that will process these events. > > > > I will try to do this, thanks. I just tried ocamlsdl (I get a weird > > relocation error at exit) and ocamlsvga (my S3 card isn't fully > > supported), so I have no other choice. > > This is just an idea :) Hmm, I've just tried it, it doesn't work, seems that Thread and Graphics don't mix very well, if one thread calls Graphics.wait_next_event, others get blocked too. I'm recomping Ocaml with native threads now to see if that will help ! -- Berke ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners