Boost logo

Boost Users :

Subject: Re: [Boost-users] Hitting a mysterious memory limit for shared mutex
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2010-04-07 10:21:40


El 07/04/2010 08:30 a.m., Stefan Stefansson escribió:
> Since I haven't gotten any replies to my question I went ahead and
> created a working example in the hope that someone can take it and try
> it out.

I am not sure if its related to your problem, but from your code it
seems you are calling free() on a mutex allocated by new
named_upgradable_mutex(). That has to be wrong (different memory
allocation techniques, destructor not called, etc). You should call
delete on your mutex, rather than free, and in a context where
named_upgradable_mutex is complete (at ruauv_camReadUnlock I guess).

Agustín K-ballo Bergé.-
http://talesofcpp.blogspot.com


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