Local statics
Mark Mitchell
mark at codesourcery.com
Wed Mar 8 18:57:09 UTC 2000
For the most part, the ABI doesn't have to talk about threading. If,
for example, an implementation doesn't provide a thread-safe
exception-handling mechanism, then that's a limitation of the
implementation, but there's no reason that a library which only
expects there to be a single thread, created with a different
compiler, couldn't be linked with object files generated by the
implementation without thread-safe exception-handling.
However, we do need to decide what, if anything, to do about local
statics with constructors. As a quality-of-implementation issue,
compilers should ensure that they are constructed only once. Ensuring
this requires some kind of locking protocol; that requires ABI
standardization.
Or, did we already handle this in some other way?
--
Mark Mitchell mark at codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the cxx-abi-dev
mailing list