Make all accesses of Node->ref_count atomic
authorEdward Hervey <bilboed@bilboed.com>
Thu, 24 Sep 2009 09:38:49 +0000 (11:38 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 30 Nov 2009 19:52:32 +0000 (20:52 +0100)
commit5e7dba0501f4af4ac5427bbf1227ba5cb026cffa
tree7b97d83576f0941bf80c2efba27f8c8edfce1c57
parent2ec989902b2800d150bbb2cf6c3b6924f43ed736
Make all accesses of Node->ref_count atomic

This does not change any locking behavior at all, it just replaces
simple getters/setters of the variable with atomic versions.

The ref_count variable was kept as unsigned, even though that requires
casting for all operations, to mirror GObject->refcount.

https://bugzilla.gnome.org/show_bug.cgi?id=585375
gobject/gtype.c