summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-30 12:04:13 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-30 12:04:13 +0100
commit5a125ccfa4fcf3f9e38d24b0c7f08c3bc1ab239f (patch)
tree21ad8bfb3af4c60b9547707bbc52aa0960e9d5f4
parent07138e1e1d3b728efdd6e8789f60c4a277a25ff7 (diff)
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
-rw-r--r--src/lib/eina/eina_file_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index e70d9ef1cb..0380ea7a85 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -99,7 +99,7 @@ EAPI void
99eina_file_statgen_enable(void) 99eina_file_statgen_enable(void)
100{ 100{
101 eina_spinlock_take(&_eina_statgen_lock); 101 eina_spinlock_take(&_eina_statgen_lock);
102 if (_eina_statgen != 0) _eina_statgen = 1; 102 if (_eina_statgen == 0) _eina_statgen = 1;
103 eina_spinlock_release(&_eina_statgen_lock); 103 eina_spinlock_release(&_eina_statgen_lock);
104} 104}
105 105