Merge branch 'wip/chergert/volatile-fixes' into 'master'

types: fix various use of volatile in type registration

See merge request GNOME/gtk!2865
This commit is contained in:
Timm Bäder 2020-12-29 07:49:12 +00:00
commit 108933b655
11 changed files with 15 additions and 15 deletions

View File

@ -12,7 +12,7 @@
GType
@enum_name@_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile))
{

View File

@ -210,7 +210,7 @@ gdk_event_init (GdkEvent *self)
GType
gdk_event_get_type (void)
{
static volatile gsize event_type__volatile;
static gsize event_type__volatile;
if (g_once_init_enter (&event_type__volatile))
{
@ -374,7 +374,7 @@ static GType gdk_event_types[GDK_EVENT_LAST];
GType \
type_name ## _get_type (void) \
{ \
static volatile gsize gdk_define_event_type_id__volatile; \
static gsize gdk_define_event_type_id__volatile; \
if (g_once_init_enter (&gdk_define_event_type_id__volatile)) \
{ \
GType gdk_define_event_type_id = \
@ -452,7 +452,7 @@ gdk_event_init_types_once (void)
void
gdk_event_init_types (void)
{
static volatile gsize event_types__volatile;
static gsize event_types__volatile;
if (g_once_init_enter (&event_types__volatile))
{

View File

@ -22,7 +22,7 @@ static guint gsk_debug_flags;
static void
init_debug_flags (void)
{
static volatile gsize gsk_debug_flags__set;
static gsize gsk_debug_flags__set;
if (g_once_init_enter (&gsk_debug_flags__set))
{

View File

@ -13,7 +13,7 @@
GType
@enum_name@_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile))
{

View File

@ -184,7 +184,7 @@ gsk_render_node_init (GskRenderNode *self)
GType
gsk_render_node_get_type (void)
{
static volatile gsize render_node_type__volatile;
static gsize render_node_type__volatile;
if (g_once_init_enter (&render_node_type__volatile))
{

View File

@ -5649,7 +5649,7 @@ gsk_render_node_init_types_once (void)
void
gsk_render_node_init_types (void)
{
static volatile gsize register_types__volatile;
static gsize register_types__volatile;
if (g_once_init_enter (&register_types__volatile))
{

View File

@ -13,7 +13,7 @@
GType
@enum_name@_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile))
{

View File

@ -249,7 +249,7 @@ struct _GtkExpressionWatch
GType \
type_name ## _get_type (void) \
{ \
static volatile gsize gtk_define_expression_type_id__volatile; \
static gsize gtk_define_expression_type_id__volatile; \
if (g_once_init_enter (&gtk_define_expression_type_id__volatile)) \
{ \
GType gtk_define_expression_type_id = \
@ -490,7 +490,7 @@ param_expression_values_cmp (GParamSpec *pspec,
GType
gtk_param_expression_get_type (void)
{
static volatile gsize param_expression_type__volatile;
static gsize param_expression_type__volatile;
if (g_once_init_enter (&param_expression_type__volatile))
{
@ -598,7 +598,7 @@ gtk_expression_init (GtkExpression *self)
GType
gtk_expression_get_type (void)
{
static volatile gsize expression_type__volatile;
static gsize expression_type__volatile;
if (g_once_init_enter (&expression_type__volatile))
{

View File

@ -1713,7 +1713,7 @@ gtk_print_operation_run_with_dialog (GtkPrintOperation *op,
GtkPrintOperationPrivate *priv;
IPrintDialogCallback *callback;
HPROPSHEETPAGE prop_page;
static volatile gsize common_controls_initialized = 0;
static gsize common_controls_initialized = 0;
if (g_once_init_enter (&common_controls_initialized))
{

View File

@ -14,7 +14,7 @@
GType
_@enum_name@_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile))
{

View File

@ -13,7 +13,7 @@
GType
@enum_name@_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile))
{