tags:

views:

137

answers:

1

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
ok thanks for the answer