From e6e88520c9d66d63f99a66ff54f51fb967fe2921 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 29 Jan 2001 17:31:40 +0000 Subject: [PATCH] hack this so it compiles, needs fixing for real. 2001-01-29 Havoc Pennington * gthread-impl.c (g_mutex_free_errorcheck_impl): hack this so it compiles, needs fixing for real. --- gthread/ChangeLog | 5 +++++ gthread/gthread-impl.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gthread/ChangeLog b/gthread/ChangeLog index 551d37e2..7b667326 100644 --- a/gthread/ChangeLog +++ b/gthread/ChangeLog @@ -1,3 +1,8 @@ +2001-01-29 Havoc Pennington + + * gthread-impl.c (g_mutex_free_errorcheck_impl): hack this so it + compiles, needs fixing for real. + 2001-01-29 Sebastian Wilhelmi * gthread-impl.c (g_mutex_free_errorcheck_impl): Add new check to diff --git a/gthread/gthread-impl.c b/gthread/gthread-impl.c index 56e24484..5c87b087 100644 --- a/gthread/gthread-impl.c +++ b/gthread/gthread-impl.c @@ -181,10 +181,12 @@ g_mutex_unlock_errorcheck_impl (GMutex *mutex, static void g_mutex_free_errorcheck_impl (GMutex *mutex) { + ErrorCheckInfo *info = G_MUTEX_DEBUG_INFO (mutex); + if (info && info->owner != NULL) g_error ("Trying to free a locked mutex at '%s', " "which was previously locked at '%s'", - location, info->location); + "FIXME", info->location); g_free (G_MUTEX_DEBUG_INFO (mutex)); g_thread_functions_for_glib_use_default.mutex_free (mutex); -- 2.34.1