parent
1f6ab7d860
commit
fd42187935
|
@ -427,8 +427,13 @@ _proc_stats_thread(void *data, Ecore_Thread *thread)
|
||||||
{
|
{
|
||||||
Eina_List *procs = proc_info_all_children_get();
|
Eina_List *procs = proc_info_all_children_get();
|
||||||
ecore_thread_feedback(thread, procs);
|
ecore_thread_feedback(thread, procs);
|
||||||
usleep(1000000 * module->poll_interval);
|
for (int i = 0; i < 8 * module->poll_interval; i++)
|
||||||
// e_powersave_sleeper_sleep(module->sleeper, module->poll_interval, EINA_TRUE);
|
{
|
||||||
|
if (ecore_thread_check(thread))
|
||||||
|
return;
|
||||||
|
usleep(125000);
|
||||||
|
// e_powersave_sleeper_sleep(module->sleeper, module->poll_interval, EINA_TRUE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -468,7 +473,6 @@ e_modapi_shutdown(E_Module *m EINA_UNUSED)
|
||||||
Proc_Stats_Module *module = _this_module;
|
Proc_Stats_Module *module = _this_module;
|
||||||
|
|
||||||
ecore_thread_cancel(module->thread);
|
ecore_thread_cancel(module->thread);
|
||||||
ecore_thread_wait(module->thread, 0.2);
|
|
||||||
|
|
||||||
//e_powersave_sleeper_free(module->sleeper);
|
//e_powersave_sleeper_free(module->sleeper);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue