[concurrency-interest] ReadWriteLocks and Conditions

Gregg Wonderly gergg at cox.net
Mon Feb 5 10:19:49 EST 2007


Peter Veentjer wrote:
> I'm working on a structure called the LendeableReference. This
> structure makes it possible to lend a reference to multiple threads
> (values are taken from the LendableReference) and after a thread is
> done with the reference, it takes it back so that a new reference can
> be set. If no reference is available, taking threads block until a
> reference is available.

It seems to me that Future would be a better match for this.  Is there something 
about Future that is not a good match?

Gregg Wonderly


More information about the Concurrency-interest mailing list