Actually, its not so much wrong as it is "working currently but will probably break at some stage". Apparently, since Solaris always runs in "total storage ordering" mode, their implementation of pthread_once is correct for those hardware platforms. Just thought I'd clarify that.
-----Original Message----- From: Sohail Somani Sent: Monday, January 22, 2007 7:25 PM To: 'boost-users@lists.boost.org' Subject: RE: [Boost-users] [general question] on threading anddoublecheckedlocking pattern
Oopsie:
http://bugs.opensolaris.org/view_bug.do?bug_id=6513516
So even the smart guys get it wrong.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Sohail Somani Sent: Monday, January 22, 2007 5:12 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [general question] on threading anddoublecheckedlocking pattern