forked from enlightenment/efl
eina: call eina_threads_init from eina_debug_init
eina is guaranteed to crash in any process without this call now that eina_debug exists and requires threads @fix Differential Revision: https://phab.enlightenment.org/D6302
This commit is contained in:
parent
0e49bfda65
commit
d886b18fc3
|
@ -711,6 +711,7 @@ eina_debug_init(void)
|
||||||
}
|
}
|
||||||
// mark as initted
|
// mark as initted
|
||||||
_inited = EINA_TRUE;
|
_inited = EINA_TRUE;
|
||||||
|
eina_threads_init();
|
||||||
// For Windows support GetModuleFileName can be used
|
// For Windows support GetModuleFileName can be used
|
||||||
// set up thread things
|
// set up thread things
|
||||||
eina_spinlock_new(&_eina_debug_lock);
|
eina_spinlock_new(&_eina_debug_lock);
|
||||||
|
@ -745,5 +746,6 @@ eina_debug_shutdown(void)
|
||||||
// yes - we never free on shutdown - this is because the monitor thread
|
// yes - we never free on shutdown - this is because the monitor thread
|
||||||
// never exits. this is not a leak - we intend to never free up any
|
// never exits. this is not a leak - we intend to never free up any
|
||||||
// resources here because they are allocated once only ever.
|
// resources here because they are allocated once only ever.
|
||||||
|
eina_threads_shutdown();
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue