diff src/image-load.c @ 1438:9141908e0609

fixed possible deadlock with multiple thumb loaders in parallel
author nadvornik
date Sun, 15 Mar 2009 09:06:13 +0000
parents b4ad1d201279
children 2c54f3f71634
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);
 }