Mercurial > hg > svapp
comparison audioio/AudioJACKTarget.cpp @ 84:19142c58cc4c
* munlockall
author | Chris Cannam |
---|---|
date | Tue, 29 Jan 2008 19:54:54 +0000 |
parents | 716e9d2f91c7 |
children | 9fc4b256c283 |
comparison
equal
deleted
inserted
replaced
83:c60bf8995166 | 84:19142c58cc4c |
---|---|
241 } | 241 } |
242 | 242 |
243 if (m_source) { | 243 if (m_source) { |
244 sourceModelReplaced(); | 244 sourceModelReplaced(); |
245 } | 245 } |
246 | |
247 // Mainstream JACK (though not jackdmp) calls mlockall() to lock | |
248 // down all memory for real-time operation. That isn't a terribly | |
249 // good idea in an application like this that may have very high | |
250 // dynamic memory usage in other threads, as mlockall() applies | |
251 // across all threads. We're far better off undoing it here and | |
252 // accepting the possible loss of true RT capability. | |
253 MUNLOCKALL(); | |
246 } | 254 } |
247 | 255 |
248 AudioJACKTarget::~AudioJACKTarget() | 256 AudioJACKTarget::~AudioJACKTarget() |
249 { | 257 { |
250 std::cerr << "AudioJACKTarget::~AudioJACKTarget()" << std::endl; | 258 std::cerr << "AudioJACKTarget::~AudioJACKTarget()" << std::endl; |