summaryrefslogtreecommitdiffstats
path: root/smdirwatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'smdirwatcher.h')
-rw-r--r--smdirwatcher.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/smdirwatcher.h b/smdirwatcher.h
index 77d0d97..dcfc714 100644
--- a/smdirwatcher.h
+++ b/smdirwatcher.h
@@ -1,4 +1,4 @@
- /*
+/*
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version
@@ -54,6 +54,7 @@ class SmDataColletor : public QThread {
public:
explicit SmDataColletor(const int numFields, QObject *parent = 0);
void init(QSemaphore *set, QSemaphore *get, QQueue<QPair<QString, SmDirWatcher::DWEvent> > *data);
+ QMutex &hold() { return mHoldMx; }
public slots:
void setCheckForPresent(bool present);
@@ -77,6 +78,7 @@ class SmDataColletor : public QThread {
bool mCheckForPresent;
bool mCancel;
QMutex mCheckForPresentMx;
+ QMutex mHoldMx;
QSqlQuery *mPicPresentQ;
QSqlQuery *mMovPresentQ;
};