summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2021-09-07 22:01:46 +0100
committerAlastair Poole <netstar@gmail.com>2021-09-07 22:01:46 +0100
commitfd4218793591f220e601e7129f01791757a784e1 (patch)
tree88fa8f7cbc9957f9499ea1c99fcbef951bad13d3
parent1f6ab7d8609b184e091575de61c9d19a538ee0ec (diff)
procstats: shutdown dont wait.
Don't block.
-rw-r--r--src/modules/procstats/e_mod_main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/modules/procstats/e_mod_main.c b/src/modules/procstats/e_mod_main.c
index 9e547d9da..55faaad24 100644
--- a/src/modules/procstats/e_mod_main.c
+++ b/src/modules/procstats/e_mod_main.c
@@ -427,8 +427,13 @@ _proc_stats_thread(void *data, Ecore_Thread *thread)
427 { 427 {
428 Eina_List *procs = proc_info_all_children_get(); 428 Eina_List *procs = proc_info_all_children_get();
429 ecore_thread_feedback(thread, procs); 429 ecore_thread_feedback(thread, procs);
430 usleep(1000000 * module->poll_interval); 430 for (int i = 0; i < 8 * module->poll_interval; i++)
431 // e_powersave_sleeper_sleep(module->sleeper, module->poll_interval, EINA_TRUE); 431 {
432 if (ecore_thread_check(thread))
433 return;
434 usleep(125000);
435 // e_powersave_sleeper_sleep(module->sleeper, module->poll_interval, EINA_TRUE);
436 }
432 } 437 }
433} 438}
434 439
@@ -468,7 +473,6 @@ e_modapi_shutdown(E_Module *m EINA_UNUSED)
468 Proc_Stats_Module *module = _this_module; 473 Proc_Stats_Module *module = _this_module;
469 474
470 ecore_thread_cancel(module->thread); 475 ecore_thread_cancel(module->thread);
471 ecore_thread_wait(module->thread, 0.2);
472 476
473 //e_powersave_sleeper_free(module->sleeper); 477 //e_powersave_sleeper_free(module->sleeper);
474 478