-----Original Message-----
From: boost-users-bounces@lists.boost.org on behalf of Peter Dimov
Sent: Sun 1/21/2007 1:30 PM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] Does boost::thread_group::create_thread havememory leak?

Sohail Somani wrote:

> I ran the OPs tests and I agree with your statement, except that it
> *does* depend on the number of threads. If I created two threads -> I
> got two leaks.

Try joining the first thread before creating a second one; it's likely that
the block will be reused by libpthread (something that can't happen with a
leak).

-----

This is correct. The OP should put in some valgrind suppression rules I suppose (i.e., not a leak).

Would it make sense to address this and the usual "boost threads has a leak on windows" question in the boost threads documentation? Perhaps under the "Implementation Notes" section?