aboutsummaryrefslogtreecommitdiffstats
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
parentethumbd - if thumb gen takes too long don't just quit ethumbd, but skip thumb (diff)
downloadefl-43725e960a3ab80d35506b1412f98da111b33922.tar.gz
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
struct _Ethumbd
{
Eldbus_Connection *conn;
- Ecore_Idler *idler;
+ Ecore_Idle_Enterer *idle_enterer;
Ethumbd_Request *processing;
Ethumbd_Queue queue;
double timeout;
@@ -768,9 +768,9 @@ _process_queue_cb(void *data)
if (!queue->nqueue)
{
- ed->idler = NULL;
+ ed->idle_enterer = NULL;
_ethumbd_timeout_redo(ed);
- ed->idler = NULL;
+ ed->idle_enterer = NULL;
return 0;
}
@@ -802,17 +802,17 @@ _process_queue_cb(void *data)
static void
_process_queue_start(Ethumbd *ed)
{
- if (!ed->idler)
- ed->idler = ecore_idler_add(_process_queue_cb, ed);
+ if (!ed->idle_enterer)
+ ed->idle_enterer = ecore_idle_enterer_add(_process_queue_cb, ed);
}
static void
_process_queue_stop(Ethumbd *ed)
{
- if (ed->idler)
+ if (ed->idle_enterer)
{
- ecore_idler_del(ed->idler);
- ed->idler = NULL;
+ ecore_idle_enterer_del(ed->idle_enterer);
+ ed->idle_enterer = NULL;
}
}