Remove not implemented API
[ardour.git] / libs / ardour / export_status.cc
index 66f02c59c31cc41b305834e8abb906a7fcb5041a..d5ccedaf3fd9f8534dcfb86744900198e23cabed 100644 (file)
@@ -33,10 +33,10 @@ ExportStatus::ExportStatus ()
 void
 ExportStatus::init ()
 {
+       Glib::Threads::Mutex::Lock l (_run_lock);
        stop = false;
-       running = false;
+       _running = false;
        _aborted = false;
-       _finished = false;
        _errors = false;
 
        active_job = Exporting;
@@ -44,30 +44,31 @@ ExportStatus::init ()
        total_timespans = 0;
        timespan = 0;
 
-       total_frames = 0;
-       processed_frames = 0;
+       total_samples = 0;
+       processed_samples = 0;
 
-       total_frames_current_timespan = 0;
-       processed_frames_current_timespan = 0;
+       total_samples_current_timespan = 0;
+       processed_samples_current_timespan = 0;
 
-       total_normalize_cycles = 0;
-       current_normalize_cycle = 0;
+       total_postprocessing_cycles = 0;
+       current_postprocessing_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 */
 }