Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_config.c Log Message: defer queued saves for 0.25 sec =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_config.c,v retrieving revision 1.166 retrieving revision 1.167 diff -u -3 -r1.166 -r1.167 --- e_config.c 21 Apr 2006 06:58:11 -0000 1.166 +++ e_config.c 11 May 2006 07:00:29 -0000 1.167 @@ -12,13 +12,13 @@ EAPI E_Config *e_config = NULL; /* local subsystem functions */ -static void _e_config_save_cb(void *data); +static int _e_config_save_cb(void *data); static void _e_config_free(void); static int _e_config_cb_timer(void *data); /* local subsystem globals */ static int _e_config_save_block = 0; -static Ecore_Job *_e_config_save_job = NULL; +static Ecore_Timer *_e_config_save_timer = NULL; static char *_e_config_profile = NULL; static E_Config_DD *_e_config_edd = NULL; @@ -1263,10 +1263,10 @@ EAPI int e_config_save(void) { - if (_e_config_save_job) + if (_e_config_save_timer) { - ecore_job_del(_e_config_save_job); - _e_config_save_job = NULL; + ecore_timer_del(_e_config_save_timer); + _e_config_save_timer = NULL; } _e_config_save_cb(NULL); return e_config_domain_save("e", _e_config_edd, e_config); @@ -1275,10 +1275,10 @@ EAPI void e_config_save_flush(void) { - if (_e_config_save_job) + if (_e_config_save_timer) { - ecore_job_del(_e_config_save_job); - _e_config_save_job = NULL; + ecore_timer_del(_e_config_save_timer); + _e_config_save_timer = NULL; _e_config_save_cb(NULL); } } @@ -1286,8 +1286,8 @@ EAPI void e_config_save_queue(void) { - if (_e_config_save_job) ecore_job_del(_e_config_save_job); - _e_config_save_job = ecore_job_add(_e_config_save_cb, NULL); + if (_e_config_save_timer) ecore_timer_del(_e_config_save_timer); + _e_config_save_timer = ecore_timer_add(0.25, _e_config_save_cb, NULL); } EAPI char * @@ -1575,13 +1575,14 @@ } /* local subsystem functions */ -static void +static int _e_config_save_cb(void *data) { e_config_profile_save(); e_module_save_all(); e_config_domain_save("e", _e_config_edd, e_config); - _e_config_save_job = NULL; + _e_config_save_timer = NULL; + return 0; } static void ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs