summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/server/JackDriver.cpp2
-rw-r--r--src/server/util.hpp6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp
index 45b168f9..0316c401 100644
--- a/src/server/JackDriver.cpp
+++ b/src/server/JackDriver.cpp
@@ -395,7 +395,7 @@ JackDriver::engine_port(ProcessContext& context,
*
* \callgraph
*/
-int
+REALTIME int
JackDriver::_process_cb(jack_nframes_t nframes)
{
if (nframes == 0 || ! _is_activated) {
diff --git a/src/server/util.hpp b/src/server/util.hpp
index 249b7a1e..d615a6df 100644
--- a/src/server/util.hpp
+++ b/src/server/util.hpp
@@ -30,6 +30,12 @@
#include <xmmintrin.h>
#endif
+#ifdef __clang__
+# define REALTIME __attribute__((annotate("realtime")))
+#else
+# define REALTIME
+#endif
+
#ifdef USE_ASSEMBLY
# if SIZEOF_VOID_P==8
# define cpuid(a, b, c, d, n) asm("xchgq %%rbx, %1; cpuid; xchgq %%rbx, %1": "=a" (a), "=r" (b), "=c" (c), "=d" (d) : "a" (n));