summaryrefslogtreecommitdiff
path: root/m4/efl_check_funcs.m4
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-10-28 14:50:05 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-10-28 22:58:36 +0900
commit973eaedf51a8ab0f9881c1fb900850dd8475bbf7 (patch)
treecfdaae6c7a0da526c63ad82463d294d81d303778 /m4/efl_check_funcs.m4
parentecc3e2fa516d937f65a24ec45c9fa62d8c9b491d (diff)
improve responsivness of timer sleeping threads for vsync with prctl
prctl allows us on some platforms to request a thread be woken up more agressively e.g. due to a timeout bu setting timerslack. since we use a dedicated thread just for vsync events, this is a very good idea to ask the kernel to be as exact as possible for this thread as it only wakes up once per frame (or should only) and accuracy is important. so use this. also improve prctl checks to be more explicit in configure.ac and use these ifdefs in ecore exe too where prctl is used as well. @feature
Diffstat (limited to 'm4/efl_check_funcs.m4')
-rw-r--r--m4/efl_check_funcs.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/efl_check_funcs.m4 b/m4/efl_check_funcs.m4
index 39fb5ee..b44f20b 100644
--- a/m4/efl_check_funcs.m4
+++ b/m4/efl_check_funcs.m4
@@ -288,6 +288,17 @@ sz = getpagesize();
288]]) 288]])
289]) 289])
290 290
291dnl _EFL_CHECK_FUNC_PRCTL is for internal use
292dnl _EFL_CHECK_FUNC_PRCTL(EFL, VARIABLE)
293AC_DEFUN([_EFL_CHECK_FUNC_PRCTL],
294[EFL_FIND_LIB_FOR_CODE([$1], [], [$2], [[
295#include <sys/prctl.h>
296]],
297[[
298prctl(PR_SET_TIMERSLACK, 1, 0, 0, 0);
299]])
300])
301
291dnl Macro that checks function availability 302dnl Macro that checks function availability
292dnl 303dnl
293dnl EFL_CHECK_FUNC(EFL, FUNCTION) 304dnl EFL_CHECK_FUNC(EFL, FUNCTION)