Skip to content

Commit

Permalink
fixed possible deadlock with multiple thumb loaders in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Mar 15, 2009
1 parent 3dfd1c1 commit c30d278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image-load.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ static void image_loader_thread_leave_high(void)
{
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);
}

Expand Down

0 comments on commit c30d278

Please sign in to comment.