e powerrsave sleep - add fd get
i could have sworn i added this... i swear i remember adding the fd get line... how did it not make it? this is odd. well add it and fix my spining cpu issue after moving to select to fix pipe wait not being threadsafe.
This commit is contained in:
parent
241d42ccf2
commit
358f154b83
|
@ -141,6 +141,12 @@ e_powersave_sleeper_new(void)
|
|||
|
||||
sleeper = E_NEW(E_Powersave_Sleeper, 1);
|
||||
sleeper->pipe = ecore_pipe_add(_e_powersave_sleeper_cb_dummy, NULL);
|
||||
if (!sleeper->pipe)
|
||||
{
|
||||
eina_freeq_ptr_add(eina_freeq_main_get(), sleeper, free, sizeof(*sleeper));
|
||||
return NULL;
|
||||
}
|
||||
sleeper->fd = ecore_pipe_read_fd(sleeper->pipe);
|
||||
ecore_pipe_freeze(sleeper->pipe);
|
||||
powersave_sleepers = eina_list_append(powersave_sleepers, sleeper);
|
||||
return (E_Powersave_Sleeper *)sleeper;
|
||||
|
|
Loading…
Reference in New Issue