Boost logo

Boost Users :

Subject: [Boost-users] [pool] Threadsafety
From: Ruediger Berlich (ruediger.berlich_at_[hidden])
Date: 2010-07-20 16:05:49

Hi there,

just to clarify: The pool documentation says in the "Object Usage vs.
Singleton Usage" section (see here:

"Pool objects with Singleton Usage may be shared; thus, Singleton Usage
implies thread-safety as well."

So, with the singleton pool interface I can safely do concurrent mallocs and
frees on all supported OSs (using Boost.Thread for the concurrency part),
albeit at the expense of having a YASWIOI (yet another singleton with its
own interface) in my programs, with all pros and cons that singletons have ?

Thanks and Kind Regards,
Ruediger Berlich

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at