cross-thread handling of SessionEvent allocation/deallocation, with widespread conseq...
[ardour.git] / libs / ardour / analyser.cc
index 2e68cfed8332cc3ad91746e6812fff00665c8464..8e2ec99f27f65739389603ed74754356f078d654 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "ardour/analyser.h"
 #include "ardour/audiofilesource.h"
+#include "ardour/session_event.h"
 #include "ardour/transient_detector.h"
 
 #include "pbd/pthread_utils.h"
@@ -76,6 +77,7 @@ void
 Analyser::work ()
 {
        PBD::notify_gui_about_thread_creation (pthread_self(), string ("analyser-") + to_string (pthread_self(), std::dec));
+       SessionEvent::create_per_thread_pool ("Analyser", 64);
 
        while (true) {
                analysis_queue_lock.lock ();