14 #ifndef OPENSHOT_PROCESSINGCONTROLLER_H
15 #define OPENSHOT_PROCESSINGCONTROLLER_H
22 uint processingProgress;
23 bool processingFinished;
26 std::string error_message;
28 std::mutex mtxProgress;
29 std::mutex mtxFinished;
36 processingProgress = 0;
37 stopProcessing =
false;
38 processingFinished =
false;
42 std::lock_guard<std::mutex> lck (mtxFinished);
43 bool f = processingFinished;
48 std::lock_guard<std::mutex> lck (mtxFinished);
49 processingFinished = f;
53 std::lock_guard<std::mutex> lck (mtxProgress);
54 processingProgress = p;
58 std::lock_guard<std::mutex> lck (mtxProgress);
59 uint p = processingProgress;
64 std::lock_guard<std::mutex> lck (mtxStop);
65 stopProcessing =
true;
69 std::lock_guard<std::mutex> lck (mtxStop);
70 bool s = stopProcessing;
75 std::lock_guard<std::mutex> lck (mtxerror);
77 error_message = message;
81 std::lock_guard<std::mutex> lck (mtxerror);
87 std::lock_guard<std::mutex> lck (mtxerror);
88 std::string message = error_message;