diff options
author | paul <paul@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2010-09-26 15:54:09 +0000 |
---|---|---|
committer | paul <paul@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2010-09-26 15:54:09 +0000 |
commit | 27ea8647fa6a1d399c4620278bdece6c20caec2c (patch) | |
tree | 2a10e5955393a70bbfdce89fcefc38e2b4827167 /libjack/thread.c | |
parent | 7a0d0310ebd31788e9c5465bd91a2337cdf6a734 (diff) | |
download | jack1-27ea8647fa6a1d399c4620278bdece6c20caec2c.tar.gz |
add --enable-valgrind-clean and associated code to permit building a version of libjack that will not trigger valgrind messages. an alternative would be a nice suppression file, if anyone wants to create one (i don't)
git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4056 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'libjack/thread.c')
-rw-r--r-- | libjack/thread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjack/thread.c b/libjack/thread.c index 11e7c9c..9bae2d0 100644 --- a/libjack/thread.c +++ b/libjack/thread.c @@ -65,13 +65,15 @@ maybe_get_capabilities (jack_client_t* client) if (client != 0) { jack_request_t req; - + if (client->engine->has_capabilities != 0) { /* we need to ask the engine for realtime capabilities before trying to run the thread work function */ + VALGRIND_MEMSET (&req, 0, sizeof (req)); + req.type = SetClientCapabilities; req.x.cap_pid = getpid(); |