question about __cxa_guard_acquire and static variables in the scope of a function
Ian Lance Taylor
iant@google.com
Tue May 10 05:36:00 GMT 2011
Brendan Miller <catphive@catphive.net> writes:
> Do you know if G++ 3.4 did thread-safe static local initialization in
> this manner? This bug appeared after a migration from 3.4 to 4.1. I'm
> wondering if statics in the scope of the function were previously
> getting double-created and double destroyed, and we just didn't notice
> somehow.
According to http://gcc.gnu.org/PR13684 support for thread-safe
initialization of function statics was indeed introduced in gcc 4.0.
Ian
More information about the Libstdc++
mailing list