From fb20b2bab30af9b69f4d914471517182d87f1397 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 May 2012 03:08:06 +0000 Subject: Add real-time annotations for sfpv. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4463 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/JackDriver.cpp | 2 +- src/server/util.hpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 #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)); -- cgit v1.2.1