forked from enlightenment/efl
ecore: don't run out of fd when crazy apps cycle through ecore_init/ecore_shutdown.
SVN revision: 70860
This commit is contained in:
parent
a033707137
commit
ed1bdf1b7b
|
@ -628,3 +628,7 @@
|
|||
2012-04-26 Carsten Haitzler (The Rasterman)
|
||||
|
||||
1.2.0 release
|
||||
|
||||
2012-05-08 Cedric Bail
|
||||
|
||||
* Don't over allocate Ecore_Pipe during ecore_init/ecore_shutdown.
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
Ecore 1.3.0
|
||||
|
||||
Changes since Ecore 1.2.0:
|
||||
|
||||
Fixes:
|
||||
* ecore
|
||||
- Prevent running out of fd when cycling ecore_init/ecore_shutdown.
|
||||
|
||||
Ecore 1.2.0
|
||||
|
||||
Changes since Ecore 1.1.0:
|
||||
|
|
|
@ -171,12 +171,16 @@ ecore_init(void)
|
|||
_ecore_job_init();
|
||||
_ecore_time_init();
|
||||
|
||||
eina_lock_new(&_thread_safety);
|
||||
eina_lock_new(&_thread_mutex);
|
||||
eina_condition_new(&_thread_cond, &_thread_mutex);
|
||||
eina_lock_new(&_thread_feedback_mutex);
|
||||
eina_condition_new(&_thread_feedback_cond, &_thread_feedback_mutex);
|
||||
_thread_call = ecore_pipe_add(_thread_callback, NULL);
|
||||
if (!_thread_call)
|
||||
{
|
||||
_thread_call = ecore_pipe_add(_thread_callback, NULL);
|
||||
eina_lock_new(&_thread_safety);
|
||||
}
|
||||
|
||||
eina_lock_new(&_thread_id_lock);
|
||||
|
||||
eina_lock_new(&_ecore_main_loop_lock);
|
||||
|
@ -241,8 +245,8 @@ ecore_shutdown(void)
|
|||
_thread_call = NULL;
|
||||
ecore_pipe_wait(p, 1, 0.1);
|
||||
ecore_pipe_del(p);
|
||||
*/
|
||||
eina_lock_free(&_thread_safety);
|
||||
*/
|
||||
eina_condition_free(&_thread_cond);
|
||||
eina_lock_free(&_thread_mutex);
|
||||
eina_condition_free(&_thread_feedback_cond);
|
||||
|
|
Loading…
Reference in New Issue