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 IAA29656; Thu, 12 Dec 2002 08:54:49 +0100 (MET) 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 IAA28804 for ; Thu, 12 Dec 2002 08:54:47 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com (r-mi214-6a108.tin.it [62.211.4.108]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gBC7skX23572 for ; Thu, 12 Dec 2002 08:54:47 +0100 (MET) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id 263CD2739B; Thu, 12 Dec 2002 08:56:12 +0100 (CET) Message-ID: <3DF8411C.90301@baretta.com> Date: Thu, 12 Dec 2002 08:56:12 +0100 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: it, en MIME-Version: 1.0 To: Brian Hurt , Ocaml Subject: Re: [Caml-list] Resource acquisition is initialization References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Brian Hurt wrote: > On Wed, 11 Dec 2002, Blair Zajac wrote: > The only thing I can think of which cannot tolerate the cleanup slop is > releasing a mutex. Deleting the mutex itself is a good application for > GC, unlocking the mutex is not. It is not the GC which unlocks the mutex but the application code. See Mutex.unlock . > And for that, I think representing > holding the lock as the lifetime of an object to be a bad idea. Were Caml > interested more in doing multithreaded code, I'd recommend something like > Java's synchronize keyword. What's the difference with respect to locking a Mutex? Alex ------------------- 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