delayline: use boost::shared_array
[ardour.git] / libs / ardour / export_status.cc
index 0f7938bb7f2cb3d4a0ab31297cf96e862a882e86..170073974b2eff7a6ae5822b20c0c6c5488a6956 100644 (file)
@@ -33,13 +33,13 @@ ExportStatus::ExportStatus ()
 void
 ExportStatus::init ()
 {
+       Glib::Threads::Mutex::Lock l (_run_lock);
        stop = false;
-       running = false;
+       _running = false;
        _aborted = false;
-       _finished = false;
        _errors = false;
 
-       normalizing = false;
+       active_job = Exporting;
 
        total_timespans = 0;
        timespan = 0;
@@ -52,22 +52,23 @@ ExportStatus::init ()
 
        total_normalize_cycles = 0;
        current_normalize_cycle = 0;
+       result_map.clear();
 }
 
 void
 ExportStatus::abort (bool error_occurred)
 {
+       Glib::Threads::Mutex::Lock l (_run_lock);
        _aborted = true;
-       _finished = true;
        _errors = _errors || error_occurred;
-       running = false;
+       _running = false;
 }
 
 void
 ExportStatus::finish ()
 {
-       _finished = true;
-       running = false;
+       Glib::Threads::Mutex::Lock l (_run_lock);
+       set_running (false);
        Finished(); /* EMIT SIGNAL */
 }