summaryrefslogtreecommitdiff
path: root/src/bin/ethumb_client/ethumbd.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-28 11:15:26 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-28 11:15:26 +0900
commit43725e960a3ab80d35506b1412f98da111b33922 (patch)
tree3c2cc9dbf873984f88d8fdb1c0dbb7e6c476532d /src/bin/ethumb_client/ethumbd.c
parentb4411c90bf4ce72f589d3614238132cddf12702c (diff)
ethumbd - stop using an idler that spins at 100% cpu while generating queues
Diffstat (limited to '')
-rw-r--r--src/bin/ethumb_client/ethumbd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/bin/ethumb_client/ethumbd.c b/src/bin/ethumb_client/ethumbd.c
index e99225278e..1b757db1b4 100644
--- a/src/bin/ethumb_client/ethumbd.c
+++ b/src/bin/ethumb_client/ethumbd.c
@@ -161,7 +161,7 @@ struct _Ethumbd_Slave
161struct _Ethumbd 161struct _Ethumbd
162{ 162{
163 Eldbus_Connection *conn; 163 Eldbus_Connection *conn;
164 Ecore_Idler *idler; 164 Ecore_Idle_Enterer *idle_enterer;
165 Ethumbd_Request *processing; 165 Ethumbd_Request *processing;
166 Ethumbd_Queue queue; 166 Ethumbd_Queue queue;
167 double timeout; 167 double timeout;
@@ -768,9 +768,9 @@ _process_queue_cb(void *data)
768 768
769 if (!queue->nqueue) 769 if (!queue->nqueue)
770 { 770 {
771 ed->idler = NULL; 771 ed->idle_enterer = NULL;
772 _ethumbd_timeout_redo(ed); 772 _ethumbd_timeout_redo(ed);
773 ed->idler = NULL; 773 ed->idle_enterer = NULL;
774 return 0; 774 return 0;
775 } 775 }
776 776
@@ -802,17 +802,17 @@ _process_queue_cb(void *data)
802static void 802static void
803_process_queue_start(Ethumbd *ed) 803_process_queue_start(Ethumbd *ed)
804{ 804{
805 if (!ed->idler) 805 if (!ed->idle_enterer)
806 ed->idler = ecore_idler_add(_process_queue_cb, ed); 806 ed->idle_enterer = ecore_idle_enterer_add(_process_queue_cb, ed);
807} 807}
808 808
809static void 809static void
810_process_queue_stop(Ethumbd *ed) 810_process_queue_stop(Ethumbd *ed)
811{ 811{
812 if (ed->idler) 812 if (ed->idle_enterer)
813 { 813 {
814 ecore_idler_del(ed->idler); 814 ecore_idle_enterer_del(ed->idle_enterer);
815 ed->idler = NULL; 815 ed->idle_enterer = NULL;
816 } 816 }
817} 817}
818 818