Mercurial > geeqie.yaz
comparison src/image-load.c @ 1184:9dd3522a0e23
Fix up not a prototype warning.
author | zas_ |
---|---|
date | Thu, 27 Nov 2008 12:30:49 +0000 |
parents | 1e2de04c6fc4 |
children | 8b89e3ff286b |
comparison
equal
deleted
inserted
replaced
1183:8738237cb029 | 1184:9dd3522a0e23 |
---|---|
769 static GCond *image_loader_prio_cond = NULL; | 769 static GCond *image_loader_prio_cond = NULL; |
770 static GMutex *image_loader_prio_mutex = NULL; | 770 static GMutex *image_loader_prio_mutex = NULL; |
771 static gint image_loader_prio_num = 0; | 771 static gint image_loader_prio_num = 0; |
772 | 772 |
773 | 773 |
774 static void image_loader_thread_enter_high() | 774 static void image_loader_thread_enter_high(void) |
775 { | 775 { |
776 g_mutex_lock(image_loader_prio_mutex); | 776 g_mutex_lock(image_loader_prio_mutex); |
777 image_loader_prio_num++; | 777 image_loader_prio_num++; |
778 g_mutex_unlock(image_loader_prio_mutex); | 778 g_mutex_unlock(image_loader_prio_mutex); |
779 } | 779 } |
780 | 780 |
781 static void image_loader_thread_leave_high() | 781 static void image_loader_thread_leave_high(void) |
782 { | 782 { |
783 g_mutex_lock(image_loader_prio_mutex); | 783 g_mutex_lock(image_loader_prio_mutex); |
784 image_loader_prio_num--; | 784 image_loader_prio_num--; |
785 if (image_loader_prio_num == 0) g_cond_signal(image_loader_prio_cond); | 785 if (image_loader_prio_num == 0) g_cond_signal(image_loader_prio_cond); |
786 g_mutex_unlock(image_loader_prio_mutex); | 786 g_mutex_unlock(image_loader_prio_mutex); |
787 } | 787 } |
788 | 788 |
789 static void image_loader_thread_wait_high() | 789 static void image_loader_thread_wait_high(void) |
790 { | 790 { |
791 g_mutex_lock(image_loader_prio_mutex); | 791 g_mutex_lock(image_loader_prio_mutex); |
792 while (image_loader_prio_num) | 792 while (image_loader_prio_num) |
793 { | 793 { |
794 g_cond_wait(image_loader_prio_cond, image_loader_prio_mutex); | 794 g_cond_wait(image_loader_prio_cond, image_loader_prio_mutex); |