Boost logo

Boost Users :

Subject: Re: [Boost-users] valgrind reports memory still reachable when using shared_lock and shared_mutex
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-09-03 00:10:31


AMDG

Rajeev Rao wrote:
> I found similar problems when getting an exclusive lock via unique_lock as well. I wrote this test code to reproduce.
> I get the still-reachable problem if I use either the read() or the write() call (shared_lock or unique_lock).
> Multiple calls to these functions did not increase the number of reachable bytes in the valgrind report.
> I understand my previous use of adopt_lock was undefined (hence i've not used it here). Is my use as described by the code correct now ? If so, is this a bug ?
>

It is almost certainly exactly the same as with shared_lock. The
code that allocates the object is in a lower level component.

In Christ,
Steven Watanabe


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