mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-15 06:45:48 +00:00
* add mutex to avoid crash on qhash data update (#62)
* update gitignore * update contributing.md
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#ifndef AWKEYS_H
|
||||
#define AWKEYS_H
|
||||
|
||||
#include <QMutex>
|
||||
#include <QObject>
|
||||
|
||||
#include "extitemaggregator.h"
|
||||
@ -95,9 +96,10 @@ private:
|
||||
QHash<QString, QString> values;
|
||||
bool m_wrapNewLines = false;
|
||||
// queue and stream lock properties
|
||||
QThreadPool *threadPool = nullptr;
|
||||
int queueLimit, queue = 0;
|
||||
bool lock = true;
|
||||
QThreadPool *m_threadPool = nullptr;
|
||||
QMutex m_mutex;
|
||||
int m_queueLimit, m_queue = 0;
|
||||
bool m_lock = true;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user