forked from enlightenment/evisum
ui: dont do this...
Might be wrong but I think manually waiting for threads is not good practice. I don't remember where I learnt this for EFL but it doesm't seem to be a good idea, the main loop should handle this?
This commit is contained in:
parent
68480f726d
commit
b8efdc0a18
|
@ -1594,23 +1594,6 @@ evisum_ui_shutdown(Ui *ui)
|
||||||
void
|
void
|
||||||
evisum_ui_del(Ui *ui)
|
evisum_ui_del(Ui *ui)
|
||||||
{
|
{
|
||||||
evas_object_del(ui->win);
|
|
||||||
|
|
||||||
if (ui->timer_pid)
|
|
||||||
ecore_timer_del(ui->timer_pid);
|
|
||||||
|
|
||||||
if (ui->thread_system)
|
|
||||||
ecore_thread_cancel(ui->thread_system);
|
|
||||||
|
|
||||||
if (ui->thread_process)
|
|
||||||
ecore_thread_cancel(ui->thread_process);
|
|
||||||
|
|
||||||
if (ui->thread_system)
|
|
||||||
ecore_thread_wait(ui->thread_system, 1.0);
|
|
||||||
|
|
||||||
if (ui->thread_process)
|
|
||||||
ecore_thread_wait(ui->thread_process, 1.0);
|
|
||||||
|
|
||||||
_proc_pid_cpu_times_free(ui);
|
_proc_pid_cpu_times_free(ui);
|
||||||
|
|
||||||
if (ui->cache)
|
if (ui->cache)
|
||||||
|
|
Loading…
Reference in New Issue