…to tell the UI to not redraw.
static PBD::Signal1<void,std::string> Dialog;
+ PBD::Signal0<void> BatchUpdateStart;
+ PBD::Signal0<void> BatchUpdateEnd;
+
int ensure_subdirs ();
std::string automation_dir () const; ///< Automation data
void *do_work();
/* Signal Forwarding */
- void emit_route_signals () const;
+ void emit_route_signals ();
void emit_thread_run ();
static void *emit_thread (void *);
void emit_thread_start ();
*/
void
-Session::emit_route_signals () const
+Session::emit_route_signals ()
{
+ // TODO use RAII to allow using these signals in other places
+ BatchUpdateStart(); /* EMIT SIGNAL */
boost::shared_ptr<RouteList> r = routes.reader ();
for (RouteList::const_iterator ci = r->begin(); ci != r->end(); ++ci) {
(*ci)->emit_pending_signals ();
}
+ BatchUpdateEnd(); /* EMIT SIGNAL */
}
void