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 BAA07786; Tue, 3 Apr 2001 01:06:14 +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 BAA07784 for ; Tue, 3 Apr 2001 01:06:12 +0200 (MET DST) Received: from staffmail.vertical.net (staffmail.vertical.net [146.145.74.63]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f32N6BD20967 for ; Tue, 3 Apr 2001 01:06:11 +0200 (MET DST) Received: from SFOWVCHAK1L7 ([208.35.235.254]) by staffmail.vertical.net (8.9.3+Sun/8.9.3) with SMTP id TAA03647; Mon, 2 Apr 2001 19:02:44 -0400 (EDT) Message-ID: <002401c0bbca$7c0ba620$bfcaa8c0@SFOWVCHAK1L7> Reply-To: "Vijay Chakravarthy" From: "Vijay Chakravarthy" To: "David Brown" , References: <20010402124640.A20688@trix.com> Subject: Re: [Caml-list] Garbage collection and threads. Date: Mon, 2 Apr 2001 16:12:59 -0700 Organization: VerticalNet Solutions MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi David, If I'm not mistaken, there is a zlib binding in the mlswf library published to the list a month ago. It would be nice to have a standalone zlib binding as well, helps with things like pdf parsing etc. Vijay ----- Original Message ----- From: "David Brown" To: Sent: Monday, April 02, 2001 12:46 PM Subject: [Caml-list] Garbage collection and threads. > I'm writing some bindings to zlib (compression library) and was wondering > how the garbage collector would work with threading. > > The zlib library needs two buffers, one to get data from, and one to put > data in. Is it safe to pass the result of String_val(x) into a C routine? > If I have threads running, could the garbage collector run while my C > routine is running? > > Thanks, > Dave Brown > ------------------- > To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr