The following reply was made to PR threads/150959; it has been noted by GNATS.
From: John Baldwin <
[hidden email]>
To:
[hidden email],
[hidden email]
Cc:
Subject: Re: threads/150959: [libc] Stub pthread_once in libc should call
_libc_once
Date: Mon, 16 May 2011 09:57:38 -0400
FWIW, I would also prefer that we fix libstdc++ to not depend on this
misfeature and properly implement pthread_once() using _libc_once() in
the non-threaded case as well.
One advantage of fixing libstdc++ to honor __isthreaded would be that
single threaded C++ apps that linked against libthr (due to using 3rd
party libraries that can use threads but the specific app doesn't enable
that, e.g. protobuf) would not always use locks unnecessarily in all of
libstdc++.
--
John Baldwin
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-threadsTo unsubscribe, send any mail to "
[hidden email]"