Date: Mon, 16 May 2011 14:00:25 GMT From: John Baldwin <jhb@FreeBSD.org> To: freebsd-threads@FreeBSD.org Subject: Re: threads/150959: [libc] Stub pthread_once in libc should call _libc_once Message-ID: <201105161400.p4GE0Ppw032397@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/150959; it has been noted by GNATS. From: John Baldwin <jhb@FreeBSD.org> To: bug-followup@FreeBSD.org, temporal@gmail.com 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105161400.p4GE0Ppw032397>