From 5fb7be39616e1553cfe0b9a911ce59b569aa27c4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 16 Jan 2006 22:14:17 +0000 Subject: [PATCH] Signal waiting threads, problem noticed by Christian Kellner. 2006-01-16 Matthias Clasen * glib/gasyncqueue.c (g_async_queue_push_sorted_unlocked): Signal waiting threads, problem noticed by Christian Kellner. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ glib/gasyncqueue.c | 2 ++ 4 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 19e9cccbd..99ee1db5c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-16 Matthias Clasen + + * glib/gasyncqueue.c (g_async_queue_push_sorted_unlocked): + Signal waiting threads, problem noticed by Christian Kellner. + 2006-01-16 Matthias Clasen Fix bug 326747, Alberto Ruiz: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 19e9cccbd..99ee1db5c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2006-01-16 Matthias Clasen + + * glib/gasyncqueue.c (g_async_queue_push_sorted_unlocked): + Signal waiting threads, problem noticed by Christian Kellner. + 2006-01-16 Matthias Clasen Fix bug 326747, Alberto Ruiz: diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 19e9cccbd..99ee1db5c 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2006-01-16 Matthias Clasen + + * glib/gasyncqueue.c (g_async_queue_push_sorted_unlocked): + Signal waiting threads, problem noticed by Christian Kellner. + 2006-01-16 Matthias Clasen Fix bug 326747, Alberto Ruiz: diff --git a/glib/gasyncqueue.c b/glib/gasyncqueue.c index b44cd287b..e025b50c4 100644 --- a/glib/gasyncqueue.c +++ b/glib/gasyncqueue.c @@ -308,6 +308,8 @@ g_async_queue_push_sorted_unlocked (GAsyncQueue *queue, data, (GCompareDataFunc)g_async_queue_invert_compare, &sd); + if (queue->waiting_threads > 0) + g_cond_signal (queue->cond); } static gpointer