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 PAA13323; Thu, 29 Aug 2002 15:09:23 +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 PAA13246 for ; Thu, 29 Aug 2002 15:09:22 +0200 (MET DST) Received: from mel-rto4.wanadoo.fr (smtp-out-4.wanadoo.fr [193.252.19.23]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7TD9MX03975 for ; Thu, 29 Aug 2002 15:09:22 +0200 (MET DST) Received: from mel-rta10.wanadoo.fr (193.252.19.193) by mel-rto4.wanadoo.fr (6.5.007) id 3D64406F0036DAB7 for caml-list@inria.fr; Thu, 29 Aug 2002 15:09:21 +0200 Received: from gogol (193.248.190.71) by mel-rta10.wanadoo.fr (6.5.007) id 3D49FFDD00A831EC; Thu, 29 Aug 2002 15:09:21 +0200 Received: from berke by gogol with local (Exim 3.35 #1 (Debian)) id 17kN7v-0000C3-00; Thu, 29 Aug 2002 13:06:15 +0200 Date: Thu, 29 Aug 2002 13:06:15 +0200 From: Berke Durak To: =?iso-8859-1?Q?Micha=EBl_Gr=FCnewald?= Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: Two severe limitations in Graphics module Message-ID: <20020829110615.GB304@gogol> References: <20020827203437.GA326@gogol> <87u1lfikjx.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: <87u1lfikjx.fsf@ketanu.dyndns.org> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. I don't like threads very much because they are hard to debug with ocamldebug, and native threads are not supported under every OS (for ex. OpenBSD). > 2/Why don't use alarm signam or something like ? Alarm has only a single-second resolution and is not implemented under MS-Windows. Plus the Graphics module uses the alarm signal, I think. -- 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