Eliminate circular dependency kludge for control_protocol/smpte.o.
[ardour.git] / libs / ardour / analyser.cc
index 9309b4d03b1d5b6ca63687d1503157f06b4dd279..c19657baaf40ce9988b4b1d8f23e335dcc7586c8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2008 Paul Davis 
+    Copyright (C) 2008 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 #include "ardour/analyser.h"
 #include "ardour/audiofilesource.h"
+#include "ardour/session_event.h"
 #include "ardour/transient_detector.h"
 
 #include "pbd/pthread_utils.h"
 #include "pbd/convert.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 
@@ -36,7 +36,7 @@ list<boost::weak_ptr<Source> > Analyser::analysis_queue;
 
 Analyser::Analyser ()
 {
-       
+
 }
 
 Analyser::~Analyser ()
@@ -75,7 +75,7 @@ Analyser::queue_source_for_analysis (boost::shared_ptr<Source> src, bool force)
 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 ();