mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
Volatile not necessary after all
I was temporarily confused.
This commit is contained in:
parent
53f93aacf3
commit
666adc2dc0
@ -107,7 +107,7 @@ struct _GRealArray
|
|||||||
guint elt_size;
|
guint elt_size;
|
||||||
guint zero_terminated : 1;
|
guint zero_terminated : 1;
|
||||||
guint clear : 1;
|
guint clear : 1;
|
||||||
volatile gint ref_count;
|
gint ref_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -759,7 +759,7 @@ struct _GRealPtrArray
|
|||||||
gpointer *pdata;
|
gpointer *pdata;
|
||||||
guint len;
|
guint len;
|
||||||
guint alloc;
|
guint alloc;
|
||||||
volatile gint ref_count;
|
gint ref_count;
|
||||||
GDestroyNotify element_free_func;
|
GDestroyNotify element_free_func;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ struct _GAsyncQueue
|
|||||||
GQueue queue;
|
GQueue queue;
|
||||||
GDestroyNotify item_free_func;
|
GDestroyNotify item_free_func;
|
||||||
guint waiting_threads;
|
guint waiting_threads;
|
||||||
volatile gint ref_count;
|
gint ref_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -220,7 +220,7 @@ struct _GHashTable
|
|||||||
|
|
||||||
GHashFunc hash_func;
|
GHashFunc hash_func;
|
||||||
GEqualFunc key_equal_func;
|
GEqualFunc key_equal_func;
|
||||||
volatile gint ref_count;
|
gint ref_count;
|
||||||
#ifndef G_DISABLE_ASSERT
|
#ifndef G_DISABLE_ASSERT
|
||||||
/*
|
/*
|
||||||
* Tracks the structure of the hash table, not its contents: is only
|
* Tracks the structure of the hash table, not its contents: is only
|
||||||
|
@ -85,7 +85,7 @@ struct _GTree
|
|||||||
GDestroyNotify value_destroy_func;
|
GDestroyNotify value_destroy_func;
|
||||||
gpointer key_compare_data;
|
gpointer key_compare_data;
|
||||||
guint nnodes;
|
guint nnodes;
|
||||||
volatile gint ref_count;
|
gint ref_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GTreeNode
|
struct _GTreeNode
|
||||||
|
Loading…
Reference in New Issue
Block a user