aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jalv.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 52f9324..2c2a77c 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -64,6 +64,12 @@
# define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif
+#ifdef __clang__
+# define REALTIME __attribute__((annotate("realtime")))
+#else
+# define REALTIME
+#endif
+
ZixSem exit_sem; /**< Exit semaphore */
LV2_URID
@@ -310,7 +316,7 @@ jack_buffer_size_cb(jack_nframes_t nframes, void* data)
}
/** Jack process callback. */
-int
+REALTIME int
jack_process_cb(jack_nframes_t nframes, void* data)
{
Jalv* const host = (Jalv*)data;