Boost logo

Boost Users :

Subject: [Boost-users] [Pool] Overhead in using singleton_pool?
From: Julius Ziegler (ziegler_at_[hidden])
Date: 2009-07-13 12:51:56


Hello list,

I would like to know if there is any overhead in using singleton_pool
instead of a simple pool object. Especially, I guess there could be some
overhead due to synchronisation, as the singleton interface is
guaranteed to be thread safe.

I currently have some trouble with deallocation order of statics at
program exit (I am using a static pool object), but everything works
fine when I use singleton_pool instead.

Are there any disadvantages (runtime) when using singleton_pool?

Thanks!

Julius


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