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 LAA19580; Wed, 14 Apr 2004 11:17:37 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA19193 for ; Wed, 14 Apr 2004 11:17:36 +0200 (MET DST) Received: from post.bourget.univ-savoie.fr (post.bourget.univ-savoie.fr [193.48.120.73]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3E9Iajq000983 for ; Wed, 14 Apr 2004 11:18:36 +0200 Received: from univ-savoie.fr (d85.lama.univ-savoie.fr [193.48.123.85]) by post.bourget.univ-savoie.fr (8.12.3/jtpda-5.4) with ESMTP id i3E9L0kh022271 ; Wed, 14 Apr 2004 11:21:00 +0200 Message-ID: <407D0289.5090807@univ-savoie.fr> Date: Wed, 14 Apr 2004 11:21:13 +0200 From: Christophe Raffalli User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Daniel_B=FCnzli?= CC: caml-list@inria.fr Subject: Re: [Caml-list] Scheduling thread problem kernel 2.6 References: <407B9D6F.70800@univ-savoie.fr> <20040413194854.GB27613@davidb.org> <407CD31D.5080001@univ-savoie.fr> <44F959F8-8DEB-11D8-A972-000393DBC266@epfl.ch> In-Reply-To: <44F959F8-8DEB-11D8-A972-000393DBC266@epfl.ch> X-Enigmail-Version: 0.83.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC07CFC28E3A2DE4CA12EC923" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; raffalli:01 raffalli:01 univ-savoie:01 caml-list:01 openpgp:01 2440:01 3156:01 stub:01 camlprim:01 val:01 lablglut:01 glsurf:01 savoie:01 chablais:01 73376:01 X-Attachments: type="application/pgp-signature" name="signature.asc" name="signature.asc" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 318 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC07CFC28E3A2DE4CA12EC923 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Daniel Bünzli wrote: > > Le 14 avr. 04, ŕ 07:58, Christophe Raffalli a écrit : > >> I do not understand ? First I launch the interface thread from Caml with >> Thread.create and the interface thread calls Glut.main_loop which >> never ends (except when the program terminates). This main loop call >> some Caml functions. > > > My understanding is that the Glut.main_loop stub should be something like > > #include > > CAMLprim value ocaml_glutMainLoop(value v) > { > enter_blocking_section(); > glutMainLoop(); > leave_blocking_section(); /* This will in fact never be called */ > return Val_unit; > } No it does not enter a blocking section (I checked the code of LablGlut). Moreover, if it was the case, Glsurf would never have worked correcdtly under kernel 2.4. You do not need in general to enter a blocking section when calling C. you only need that if you call some specific Caml function from C (if I remember well) -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature --------------------------------------------- --------------enigC07CFC28E3A2DE4CA12EC923 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFAfQKJSQDyWB/+xBwRAuMjAKDd4tSUrHsbHXFIHkstRp4Tej92RgCXdBDd VD+CX7LIzGaTp0ZmguJSdg== =XKDR -----END PGP SIGNATURE----- --------------enigC07CFC28E3A2DE4CA12EC923-- ------------------- 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