Boost logo

Boost :

From: Boris (boriss_at_[hidden])
Date: 2008-06-24 15:49:47


On Tue, 24 Jun 2008 16:37:56 +0200, Jens Seidel <jensseidel_at_[hidden]>
wrote:

> [...]OK, for all users of this lib here is the patch:
>
> boost/log/detail/ts_posix.hpp:
> @@ -51,7 +51,7 @@
> mutex & operator = ( const mutex & Not_Implemented);
> mutex( const mutex & From);
> public:
> - mutex() : m_mutex() {
> + mutex() : m_mutex(), m_count(0) {
> pthread_mutexattr_t attr;
> int res = pthread_mutexattr_init(&attr);
> assert(res == 0);
>
> I haven't checked whether this occurs in version 2 as well.

Checked it: m_count is not initialized in
boost/logging/detail/ts/ts_posix.hpp in version 2 either.

Boris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk