Boost logo

Boost Users :

Subject: Re: [Boost-users] Memory management of boost::mutex
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2010-07-12 13:07:56

Markus Henschel <markus.henschel_at_[hidden]> writes:

> we have a custom memory manager that overrides global new/delete. It
> is currently not thread safe. Because we require thread safety now I
> wanted to ad a mutex and some locks around the critical
> parts. Unfortunately boost::mutex allocates memory itself.

boost::mutex does not directly allocate any memory itself, so this
should not be a problem. Which version of boost are you using, on which


Author of C++ Concurrency in Action
just::thread C++0x thread library   
Just Software Solutions Ltd
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

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