mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-19 21:29:59 +01:00
updated to use std::atomic
This commit is contained in:
@@ -3,11 +3,13 @@
|
||||
|
||||
#include "qtheaders.h"
|
||||
|
||||
#include<atomic>
|
||||
|
||||
class Playback : public QThread {
|
||||
Q_OBJECT
|
||||
private:
|
||||
bool stop;
|
||||
QMutex mutex,mutex_shown,mutex_add;
|
||||
std::atomic<bool> stop;
|
||||
QMutex mutex,mutex_shown,mutex_add, mutex_start;
|
||||
QWaitCondition condition;
|
||||
cv::Mat frame;
|
||||
int frame_rate;
|
||||
|
||||
Reference in New Issue
Block a user