about summary refs log tree commit diff
path: root/support/xthread.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-08-11 18:16:51 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-10-01 10:11:08 -0300
commit9cba3fa34b15017b269f2674ce7656bbc9d4d06d (patch)
tree768a20e3452722dd81667bbcb5d1808767eee941 /support/xthread.h
parent8352b6df371f1d08f86b4600a7725a5181e021ee (diff)
downloadglibc-9cba3fa34b15017b269f2674ce7656bbc9d4d06d.tar.gz
glibc-9cba3fa34b15017b269f2674ce7656bbc9d4d06d.tar.xz
glibc-9cba3fa34b15017b269f2674ce7656bbc9d4d06d.zip
support: Add support_mutex_pi_monotonic
Returns true if Priority Inheritance support CLOCK_MONOTONIC.
Diffstat (limited to 'support/xthread.h')
-rw-r--r--support/xthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/support/xthread.h b/support/xthread.h
index a4a4ec5b1e..30501f5772 100644
--- a/support/xthread.h
+++ b/support/xthread.h
@@ -21,6 +21,7 @@
 
 #include <pthread.h>
 #include <sys/cdefs.h>
+#include <stdbool.h>
 
 __BEGIN_DECLS
 
@@ -29,6 +30,9 @@ __BEGIN_DECLS
    exit function, so atexit handlers are executed.  */
 void delayed_exit (int seconds);
 
+/* Returns true if Priority Inheritance support CLOCK_MONOTONIC.  */
+bool support_mutex_pi_monotonic (void);
+
 /* Terminate the process (with exit status 1) if VALUE is not zero.
    In that case, print a failure message to standard output mentioning
    FUNCTION.  The process is terminated with the exit function, so