part 2 of 3 of the 2.8 -> 3.0 merge
[ardour.git] / libs / ardour / ardour / session.h
index 6114cf8062cfe5ee89eccab88bbdf2573f7cf197..dc43e08a2d2140009cfa315d8cddfc36a8e664db 100644 (file)
@@ -1054,6 +1054,10 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        void process_export         (nframes_t);
        int  process_export_fw      (nframes_t);
 
+       void block_processing() { g_atomic_int_set (&processing_prohibited, 1); }
+       void unblock_processing() { g_atomic_int_set (&processing_prohibited, 0); }
+       bool processing_blocked() const { return g_atomic_int_get (&processing_prohibited); }
+
        /* slave tracking */
 
        static const int delta_accumulator_size = 25;