heads up: 6611808 pthread_once() intializer
Date: Wed, 17 Sep 2008 16:50:10 -0700 (PDT)
From: "Roger A. Faulkner" <Roger.Faulkner at sun dot com>
To: on-all at sun dot com, onnv-gate at onnv dot eng dot sun dot com
Subject: heads up: 6611808 pthread_once() intializer
This is a heads up for anyone with code (outside of ON and SFW)
that uses pthread_once() with an initialization like this:
pthread_once_t once_control = { PTHREAD_ONCE_INIT };
The extra braces are a recommended workaround for the
problem described in CR:
6611808 pthread_once() intializer triggers GCC warning
With the push of the fix for 6611808 that I did today, the
workaround is no longer needed, and will cause a build failure
on machines with the fix installed.
The unfortunate code should be reset to the proper:
pthread_once_t once_control = PTHREAD_ONCE_INIT;
This does not affect the ON and SFW consolidations.
There are no instances of this in those consolidations.
Roger Faulkner
on 2009/11/20 23:48