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 VAA05684; Mon, 2 Apr 2001 21:46:43 +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 VAA05649 for ; Mon, 2 Apr 2001 21:46:42 +0200 (MET DST) Received: from spoon.trix.com (spoon.trix.com [209.75.99.171]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f32Jkej09308 for ; Mon, 2 Apr 2001 21:46:40 +0200 (MET DST) Received: from davidb by spoon.trix.com with local (Exim 3.12 #1 (Debian)) id 14kAHg-0005P6-00 for ; Mon, 02 Apr 2001 12:46:40 -0700 Date: Mon, 2 Apr 2001 12:46:40 -0700 From: David Brown To: caml-list@inria.fr Subject: [Caml-list] Garbage collection and threads. Message-ID: <20010402124640.A20688@trix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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