Proposal: Automatic Resource Management

Peter Mount peter at
Sun Mar 8 06:03:21 PDT 2009

ManagedLock sounds like a good idea as it wouldn't break existing code and could then be used for other mechanisms than concurrent Lock's.


------Original Message------
From: Stefan Schulz
Sender: coin-dev-bounces at
To: coin-dev at
ReplyTo: schulz at
Subject: Re: Proposal: Automatic Resource Management
Sent: Mar 8, 2009 11:19

Just a thought (although I contradict one of my earlier posts): If Locks 
seem important for being handled by ARM (and I think they are), why not 
allow a seperate Interface for ARM that results in the appropriate code? 
Maybe a reduced Lock-Interface (e.g. ManagableLock) only containing the 
methods lock() and unlock().

The main argument to me for treating Locks additionally to closable 
resources is to give a more complete resource management construct to 
developers that prevents the (to be expected) ugly solution as being 
discussed on this list.


Peter Mount (from my BlackBerry)
e: peter at
m: +44 (0)7838 191423 / +44 (0)7903 155887

Instant Messaging:
Contact me directly via Jabber or GoogleTalk at peter at or via MSN at retep207 at
Alternatively via my BlackBerry at 2542ABDA or via GoogleTalk: petermount at

More information about the coin-dev mailing list