
7 Apr
2010
7 Apr
'10
2:21 p.m.
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