changeset 1438:9141908e0609

fixed possible deadlock with multiple thumb loaders in parallel
author nadvornik
date Sun, 15 Mar 2009 09:06:13 +0000
parents a3d3208b0c50
children 2441a90c4bcf
files src/image-load.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/image-load.c	Sun Mar 15 07:07:52 2009 +0000
+++ b/src/image-load.c	Sun Mar 15 09:06:13 2009 +0000
@@ -786,7 +786,7 @@
 {
 	g_mutex_lock(image_loader_prio_mutex);
 	image_loader_prio_num--;
-	if (image_loader_prio_num == 0) g_cond_signal(image_loader_prio_cond);
+	if (image_loader_prio_num == 0) g_cond_broadcast(image_loader_prio_cond); /* wake up all low prio threads */
 	g_mutex_unlock(image_loader_prio_mutex);
 }