forked from enlightenment/efl
eina - statgen (stat generation) - fix enable api to actually enable
it wasn't being enabled thus missing an entire optimization limiting stats to "once per frame" etc. to avoid overly syscall+io happy code from having as much of an impact @fix
This commit is contained in:
parent
07138e1e1d
commit
5a125ccfa4
|
@ -99,7 +99,7 @@ EAPI void
|
||||||
eina_file_statgen_enable(void)
|
eina_file_statgen_enable(void)
|
||||||
{
|
{
|
||||||
eina_spinlock_take(&_eina_statgen_lock);
|
eina_spinlock_take(&_eina_statgen_lock);
|
||||||
if (_eina_statgen != 0) _eina_statgen = 1;
|
if (_eina_statgen == 0) _eina_statgen = 1;
|
||||||
eina_spinlock_release(&_eina_statgen_lock);
|
eina_spinlock_release(&_eina_statgen_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue