|
Boost Users : |
Subject: [Boost-users] Object pool
From: Lloyd (lloydkl.tech_at_[hidden])
Date: 2010-12-07 01:39:47
Hi,
I have gone through the object pool documentation, but could not find
a clear answer to my doubt.
I want to make a pool of 10 objects. As and when an object need to be
created, the pool will be searched for free objects, then the free
ones will be chosen. Otherwise it will wait until any of the object is
free. Is this possible with object pool?
My questions are...
How can I allocate 10 objects in single shot?
How can I get the reference to unused object from the pool?
Is there a same mechanism for threads as well?
Thanks in advance,
Lloyd
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net