[Summary] Added possibility to identify IO thread which does not have required resources initialized during process callback handling
Conflicts: libs/ardour/ardour/audioengine.h libs/backends/wavesaudio/waves_audiobackend.cc libs/pbd/pbd/pool.h
This commit is contained in:
@@ -175,6 +175,20 @@ PerThreadPool::create_per_thread_pool (string n, unsigned long isize, unsigned l
|
||||
_key.set (new CrossThreadPool (n, isize, nitems, this));
|
||||
}
|
||||
|
||||
/** @return True if CrossThreadPool for the current thread exists,
|
||||
* False otherwise
|
||||
*/
|
||||
bool
|
||||
PerThreadPool::has_per_thread_pool ()
|
||||
{
|
||||
CrossThreadPool* p = _key.get();
|
||||
if (p) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/** @return CrossThreadPool for the current thread, which must previously have been created by
|
||||
* calling create_per_thread_pool in the current thread.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user