Object Pool

Andrea Fontana nospam at example.com
Thu Jul 19 08:44:29 PDT 2012


Does something to manage object pooling exists (thread safe)?

Something like:

auto pool = new Pool!MyObj;
auto obj = pool.get;

...
...
...

pool.release(obj); // or maybe obj.release;

In a thread-safe way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120719/fb55a44d/attachment.html>


More information about the Digitalmars-d mailing list