# HG changeset patch # User Chris Cannam # Date 1201636494 0 # Node ID 19142c58cc4c927b8e7b709ee1e4f639cdda7b24 # Parent c60bf8995166887c9bd5cb86070a345eddf53d61 * munlockall diff -r c60bf8995166 -r 19142c58cc4c audioio/AudioJACKTarget.cpp --- a/audioio/AudioJACKTarget.cpp Mon Jan 28 17:43:44 2008 +0000 +++ b/audioio/AudioJACKTarget.cpp Tue Jan 29 19:54:54 2008 +0000 @@ -243,6 +243,14 @@ if (m_source) { sourceModelReplaced(); } + + // Mainstream JACK (though not jackdmp) calls mlockall() to lock + // down all memory for real-time operation. That isn't a terribly + // good idea in an application like this that may have very high + // dynamic memory usage in other threads, as mlockall() applies + // across all threads. We're far better off undoing it here and + // accepting the possible loss of true RT capability. + MUNLOCKALL(); } AudioJACKTarget::~AudioJACKTarget()