g_hash_table_new_full(): create hash tables with a ref count of 1.
authorTim Janik <timj@imendio.com>
Tue, 22 Nov 2005 13:16:58 +0000 (13:16 +0000)
committerTim Janik <timj@src.gnome.org>
Tue, 22 Nov 2005 13:16:58 +0000 (13:16 +0000)
commit3e847a090cfd8495add631d43388c461b1a85716
tree9452e6b42da21db4a7a03687501f4fd957937892
parent79209e5d5630b7547820a3472c7bc025541b00ac
g_hash_table_new_full(): create hash tables with a ref count of 1.

Tue Nov 22 14:04:26 2005  Tim Janik  <timj@imendio.com>

        * glib/ghash.h:
        * glib/ghash.c:
        g_hash_table_new_full(): create hash tables with a ref count of 1.
        g_hash_table_ref(): atomically ref_count+=1
        g_hash_table_unref(): atomically ref_count-=1, destroys hash table
        when refcount reaches 0.
        g_hash_table_destroy(): just destroy keys and values, unref by 1.
        g_hash_table_insert():
        g_hash_table_replace(): assert ref_count>0.

        * glib/gatomic.h:
        * glib/gatomic.c: added 'volatile' qualifier to all atomic pointer and
        integer pointers.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
glib/gatomic.c
glib/gatomic.h
glib/ghash.c
glib/ghash.h
glib/glib.symbols