summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-27 03:08:06 +0000
committerDavid Robillard <d@drobilla.net>2012-05-27 03:08:06 +0000
commitfb20b2bab30af9b69f4d914471517182d87f1397 (patch)
tree8b99743ac5a16b46a8f75830387a110acc6ae75d /src
parent022b2ee5a2b915608700e0d9887639309a6df407 (diff)
downloadingen-fb20b2bab30af9b69f4d914471517182d87f1397.tar.gz
ingen-fb20b2bab30af9b69f4d914471517182d87f1397.tar.bz2
ingen-fb20b2bab30af9b69f4d914471517182d87f1397.zip
Add real-time annotations for sfpv.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4463 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-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));