diff options
author | GZharun <grygoriiz@wavesglobal.com> | 2015-02-24 14:27:36 +0200 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:16:42 -0400 |
commit | ef59fbffa17c6ed08e22d17daaea0d6fa4c4ce18 (patch) | |
tree | 08d0852c0795b0d769686a713e006db8dba7f93f /libs/ardour/ardour | |
parent | 017e580c9f1f03f6dab574406aaad028bebc452a (diff) |
[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
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/audioengine.h | 3 | ||||
-rw-r--r-- | libs/ardour/ardour/session_event.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/audioengine.h b/libs/ardour/ardour/audioengine.h index 330de4e285..d1e3f8a7ef 100644 --- a/libs/ardour/ardour/audioengine.h +++ b/libs/ardour/ardour/audioengine.h @@ -209,6 +209,9 @@ class LIBARDOUR_API AudioEngine : public SessionHandlePtr, public PortManager void latency_callback (bool for_playback); void halted_callback (const char* reason); + /* checks if current thread is properly set up for audio processing */ + static bool thread_initialised_for_audio_processing (); + /* sets up the process callback thread */ static void thread_init_callback (void *); diff --git a/libs/ardour/ardour/session_event.h b/libs/ardour/ardour/session_event.h index 96145e7b29..0b29596408 100644 --- a/libs/ardour/ardour/session_event.h +++ b/libs/ardour/ardour/session_event.h @@ -134,6 +134,7 @@ public: static const framepos_t Immediate = -1; + static bool has_per_thread_pool (); static void create_per_thread_pool (const std::string& n, uint32_t nitems); static void init_event_pool (); |