forked from AuroraMiddleware/gtk
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:
commit
108933b655
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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 (®ister_types__volatile))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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 (>k_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 (¶m_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))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user