This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/46455] resource leaks due to missing destructors for mutexes and condvars
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Nov 2010 21:55:36 +0000
- Subject: [Bug libstdc++/46455] resource leaks due to missing destructors for mutexes and condvars
- Auto-submitted: auto-generated
- References: <bug-46455-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455
--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-15 21:54:40 UTC ---
Butenhof's book says you don't need to destroy a mutex/condvar that was
statically initialized, so given the FreeBSD bug I will only define the
destructor when the __GTHREAD_XXX_INIT macro is not available