+Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gnode.c glist.c gslist.c: Make sure all
+ calls to g_node_validate_allocator are within
+ current_allocator lock, so we have consistency
+ on that point. (Should not really matter,
+ but this way we match the comments)
+
+ * glist.c (g_list_free_1): Removed some lines
+ that should never have been committed. (For
+ debugging)
+
1998-12-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread/gthread-nspr.c, configure.in: Added new default thread
+Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gnode.c glist.c gslist.c: Make sure all
+ calls to g_node_validate_allocator are within
+ current_allocator lock, so we have consistency
+ on that point. (Should not really matter,
+ but this way we match the comments)
+
+ * glist.c (g_list_free_1): Removed some lines
+ that should never have been committed. (For
+ debugging)
+
1998-12-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread/gthread-nspr.c, configure.in: Added new default thread
+Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gnode.c glist.c gslist.c: Make sure all
+ calls to g_node_validate_allocator are within
+ current_allocator lock, so we have consistency
+ on that point. (Should not really matter,
+ but this way we match the comments)
+
+ * glist.c (g_list_free_1): Removed some lines
+ that should never have been committed. (For
+ debugging)
+
1998-12-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread/gthread-nspr.c, configure.in: Added new default thread
+Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gnode.c glist.c gslist.c: Make sure all
+ calls to g_node_validate_allocator are within
+ current_allocator lock, so we have consistency
+ on that point. (Should not really matter,
+ but this way we match the comments)
+
+ * glist.c (g_list_free_1): Removed some lines
+ that should never have been committed. (For
+ debugging)
+
1998-12-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread/gthread-nspr.c, configure.in: Added new default thread
+Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gnode.c glist.c gslist.c: Make sure all
+ calls to g_node_validate_allocator are within
+ current_allocator lock, so we have consistency
+ on that point. (Should not really matter,
+ but this way we match the comments)
+
+ * glist.c (g_list_free_1): Removed some lines
+ that should never have been committed. (For
+ debugging)
+
1998-12-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread/gthread-nspr.c, configure.in: Added new default thread
+Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gnode.c glist.c gslist.c: Make sure all
+ calls to g_node_validate_allocator are within
+ current_allocator lock, so we have consistency
+ on that point. (Should not really matter,
+ but this way we match the comments)
+
+ * glist.c (g_list_free_1): Removed some lines
+ that should never have been committed. (For
+ debugging)
+
1998-12-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread/gthread-nspr.c, configure.in: Added new default thread
+Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gnode.c glist.c gslist.c: Make sure all
+ calls to g_node_validate_allocator are within
+ current_allocator lock, so we have consistency
+ on that point. (Should not really matter,
+ but this way we match the comments)
+
+ * glist.c (g_list_free_1): Removed some lines
+ that should never have been committed. (For
+ debugging)
+
1998-12-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread/gthread-nspr.c, configure.in: Added new default thread
+Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gnode.c glist.c gslist.c: Make sure all
+ calls to g_node_validate_allocator are within
+ current_allocator lock, so we have consistency
+ on that point. (Should not really matter,
+ but this way we match the comments)
+
+ * glist.c (g_list_free_1): Removed some lines
+ that should never have been committed. (For
+ debugging)
+
1998-12-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread/gthread-nspr.c, configure.in: Added new default thread
# Owen Taylor 97-11-3
dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
-dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" is specified
-dnl in MODULES, feature the glib-config gmodule option.
+dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or
+dnl gthread is specified in MODULES, pass to glib-config
dnl
AC_DEFUN(AM_PATH_GLIB,
[dnl
fi
fi
- case "$4" in
- *gmodule*) glib_config_args="$glib_config_args gmodule";;
- esac
+ for module in $4 ; do
+ case "$module" in
+ gmodule)
+ glib_config_args="$glib_config_args gmodule"
+ ;;
+ gthread)
+ glib_config_args="$glib_config_args gthread"
+ ;;
+ esac
+ done
AC_PATH_PROG(GLIB_CONFIG, glib-config, no)
min_glib_version=ifelse([$1], ,0.99.7,$1)
void
g_list_push_allocator(GAllocator *allocator)
{
- g_list_validate_allocator ( allocator );
g_lock (current_allocator);
+ g_list_validate_allocator ( allocator );
allocator->last = current_allocator;
current_allocator = allocator;
g_unlock (current_allocator);
void
g_list_free (GList *list)
{
-#if 0
if (list)
{
list->data = list->next;
current_allocator->free_lists = list;
g_unlock (current_allocator);
}
-#endif
}
void
g_list_free_1 (GList *list)
{
-#if 0
if (list)
{
list->data = NULL;
current_allocator->free_lists = list;
g_unlock (current_allocator);
}
-#endif
}
GList*
void
g_node_push_allocator (GAllocator *allocator)
{
- g_node_validate_allocator ( allocator );
g_lock (current_allocator);
+ g_node_validate_allocator ( allocator );
allocator->last = current_allocator;
current_allocator = allocator;
g_unlock (current_allocator);
void
g_slist_push_allocator (GAllocator *allocator)
{
- g_slist_validate_allocator (allocator);
g_lock (current_allocator);
+ g_slist_validate_allocator (allocator);
allocator->last = current_allocator;
current_allocator = allocator;
g_unlock (current_allocator);
void
g_list_push_allocator(GAllocator *allocator)
{
- g_list_validate_allocator ( allocator );
g_lock (current_allocator);
+ g_list_validate_allocator ( allocator );
allocator->last = current_allocator;
current_allocator = allocator;
g_unlock (current_allocator);
void
g_list_free (GList *list)
{
-#if 0
if (list)
{
list->data = list->next;
current_allocator->free_lists = list;
g_unlock (current_allocator);
}
-#endif
}
void
g_list_free_1 (GList *list)
{
-#if 0
if (list)
{
list->data = NULL;
current_allocator->free_lists = list;
g_unlock (current_allocator);
}
-#endif
}
GList*
void
g_node_push_allocator (GAllocator *allocator)
{
- g_node_validate_allocator ( allocator );
g_lock (current_allocator);
+ g_node_validate_allocator ( allocator );
allocator->last = current_allocator;
current_allocator = allocator;
g_unlock (current_allocator);
void
g_slist_push_allocator (GAllocator *allocator)
{
- g_slist_validate_allocator (allocator);
g_lock (current_allocator);
+ g_slist_validate_allocator (allocator);
allocator->last = current_allocator;
current_allocator = allocator;
g_unlock (current_allocator);