Is there such a trivial pool impl available, or does anybody have clever suggestions for how to do this?
Dunno how clever this is, but I often use two hashes (table or map) (often of vectors) to maintain a keyed pool (or pools where there can be more than one instance for each key). What I do is move the object from the "available" hash to the "busy" hash to provide locking.
I suspect that you might be able to use a similar strategy.
Sorry, I've lost the context for this thread, but I use and like Jakarta's pool impl that does this.
http://jakarta.apache.org/commons/pool/
-- Serge Knystautas President Lokitech >> software . strategy . design >> http://www.lokitech.com p. 301.656.5501 e. [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
