Is boost::object_pool synchronized?
+3
A:
C++ doesn't specify anything about thread-safety, so if it isn't mentioned it likely doesn't deal with threading. Sometimes, Boost provides things that can be thread-safe out of the box, this is not one of them.
Wrap access to the pool in a mutex.
GMan
2009-11-02 20:08:04
ok thanks for the answer
2009-11-02 20:41:14