On Fri, Jan 6, 2012 at 4:04 PM, Joris Koster <joris.kos...@aimms.com> wrote:
>    void releaseRef() {
>        int nRefCnt = __sync_add_and_fetch(&m_nRefCnt, -1);
>        if (nRefCnt == 0) {
>            delete this;
>        }
>    }

Please read the documentation of ANNOTATE_HAPPENS_BEFORE() and
ANNOTATE_HAPPENS_AFTER() in the Valgrind documentation first.

Thanks,

Bart.

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to