This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13487] Construction of local static objects is not thread-safe
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jul 2004 19:44:55 -0000
- Subject: [Bug c++/13487] Construction of local static objects is not thread-safe
- References: <20031225023132.13487.rmerkert@alphatech.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-03 19:44 -------
because the initializers are done when the module is loaded so if you are loading shared library using
dlopen in two different threads this can be not thread-safe but if you did not load them lazy aka not
use dlopen there is no problem at all.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-07-03 19:44:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13487