[PATCH] pthread_once hangs when init routine throws an exception [BZ #18435]

Martin Sebor msebor@redhat.com
Thu Jun 4 07:29:00 GMT 2015


> Is there anything non-conforming about making native_handle() just
> return &this (i.e. considering the C++ object its own native
> primitive)? That seems like the right solution.

It wouldn't be non-conforming (just pointless). Whether or not
the functions even exist is implementation-defined, as is their
return type and their semantics. But for implementations that
have already made the choice to expose the underlying native
object, it's water under the bridge. They can't change what
the functions return (or very well how they're implemented)
without breaking programs that depend on it.

Martin



More information about the Libc-alpha mailing list