summaryrefslogtreecommitdiff
path: root/libs/ardour/audioengine.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-08-31 07:50:17 +0200
committerRobin Gareus <robin@gareus.org>2014-08-31 07:50:17 +0200
commit7d3f0bfd7507dde66cf7c041883a9c1b21f898b9 (patch)
tree09f08b18821ea3d7462d77cc7f760610c31e25a0 /libs/ardour/audioengine.cc
parent026c71331e87c1c4a1aaef6ad7ddc1cd0919c660 (diff)
prepare for clang static analysis of RT-functions:
see: https://github.com/fundamental/stoat eventually more functions should be annotated, and a common header file should be used to #define REALTIME __attribute__((annotate("realtime")))
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r--libs/ardour/audioengine.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc
index 6c9fd442fb..ab99ccbda3 100644
--- a/libs/ardour/audioengine.cc
+++ b/libs/ardour/audioengine.cc
@@ -170,6 +170,9 @@ AudioEngine::buffer_size_change (pframes_t bufsiz)
/** Method called by our ::process_thread when there is work to be done.
* @param nframes Number of frames to process.
*/
+#ifdef __clang__
+__attribute__((annotate("realtime")))
+#endif
int
AudioEngine::process_callback (pframes_t nframes)
{