projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4f00f3
)
GTree: Declare ref_count as volatile
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 29 May 2011 02:03:05 +0000
(22:03 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 29 May 2011 02:03:05 +0000
(22:03 -0400)
glib/gtree.c
patch
|
blob
|
history
diff --git
a/glib/gtree.c
b/glib/gtree.c
index
4aa5e5c
..
0c41ff9
100644
(file)
--- a/
glib/gtree.c
+++ b/
glib/gtree.c
@@
-85,7
+85,7
@@
struct _GTree
GDestroyNotify value_destroy_func;
gpointer key_compare_data;
guint nnodes;
-
gint
ref_count;
+
volatile gint
ref_count;
};
struct _GTreeNode
@@
-95,7
+95,7
@@
struct _GTreeNode
GTreeNode *left; /* left subtree */
GTreeNode *right; /* right subtree */
gint8 balance; /* height (left) - height (right) */
- guint8 left_child;
+ guint8 left_child;
guint8 right_child;
};