- ArdourCanvas::Canvas* _canvas;
- std::list<Wave*> _waves;
- int _wave_width;
- int _wave_height;
- bool restart_queued;
-
- static ARDOUR::InterThreadInfo itt;
- static bool thread_should_exit;
- static Glib::Cond *thread_run;
- static Glib::Cond *thread_waiting;
- static Glib::StaticMutex run_lock;
- static StripSilenceDialog* current;
-
- ARDOUR::framecnt_t max_audible;
- ARDOUR::framecnt_t min_audible;
- ARDOUR::framecnt_t max_silence;
- ARDOUR::framecnt_t min_silence;
-
- PBD::ScopedConnection* _peaks_ready_connection;
-
- static bool _detection_done (void*);
- static void* _detection_thread_work (void*);
-
- bool detection_done ();
- void* detection_thread_work ();
- bool start_silence_detection ();
- void maybe_start_silence_detection ();
-
- void update_stats (const SilenceResult&);
+ std::list<ViewInterval> views;
+
+ bool _destroying;
+
+ pthread_t _thread; ///< thread to compute silence in the background
+ static void * _detection_thread_work (void *);
+ void * detection_thread_work ();
+ Glib::Threads::Mutex _lock; ///< lock held while the thread is doing work
+ Glib::Threads::Cond _run_cond; ///< condition to wake the thread
+ bool _thread_should_finish; ///< true if the thread should terminate
+ PBD::Signal0<void> Completed; ///< emitted when a silence detection has completed
+ PBD::ScopedConnection _completed_connection;
+ ARDOUR::InterThreadInfo _interthread_info;
+
+ sigc::connection progress_idle_connection;
+ bool idle_update_progress(); ///< GUI-thread progress updates of background silence computation
+ int analysis_progress_cur;
+ int analysis_progress_max;