+Sat Nov 28 01:23:25 1998 Tim Janik <timj@gtk.org>
+
+ * ghash.c: implemented incremental freezing facility.
+
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Sat Nov 28 01:23:25 1998 Tim Janik <timj@gtk.org>
+
+ * ghash.c: implemented incremental freezing facility.
+
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Sat Nov 28 01:23:25 1998 Tim Janik <timj@gtk.org>
+
+ * ghash.c: implemented incremental freezing facility.
+
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Sat Nov 28 01:23:25 1998 Tim Janik <timj@gtk.org>
+
+ * ghash.c: implemented incremental freezing facility.
+
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Sat Nov 28 01:23:25 1998 Tim Janik <timj@gtk.org>
+
+ * ghash.c: implemented incremental freezing facility.
+
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Sat Nov 28 01:23:25 1998 Tim Janik <timj@gtk.org>
+
+ * ghash.c: implemented incremental freezing facility.
+
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Sat Nov 28 01:23:25 1998 Tim Janik <timj@gtk.org>
+
+ * ghash.c: implemented incremental freezing facility.
+
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Sat Nov 28 01:23:25 1998 Tim Janik <timj@gtk.org>
+
+ * ghash.c: implemented incremental freezing facility.
+
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
* glib.h:
{
gint size;
gint nnodes;
- gint frozen;
+ guint frozen;
GHashNode **nodes;
GHashFunc hash_func;
GCompareFunc key_compare_func;
{
g_return_if_fail (hash_table != NULL);
- hash_table->frozen = TRUE;
+ hash_table->frozen++;
}
void
{
g_return_if_fail (hash_table != NULL);
- hash_table->frozen = FALSE;
-
- g_hash_table_resize (hash_table);
+ if (hash_table->frozen)
+ if (!(--hash_table->frozen))
+ g_hash_table_resize (hash_table);
}
gint
{
gint size;
gint nnodes;
- gint frozen;
+ guint frozen;
GHashNode **nodes;
GHashFunc hash_func;
GCompareFunc key_compare_func;
{
g_return_if_fail (hash_table != NULL);
- hash_table->frozen = TRUE;
+ hash_table->frozen++;
}
void
{
g_return_if_fail (hash_table != NULL);
- hash_table->frozen = FALSE;
-
- g_hash_table_resize (hash_table);
+ if (hash_table->frozen)
+ if (!(--hash_table->frozen))
+ g_hash_table_resize (hash_table);
}
gint