Give this variable a default value so it doesn't get passed to QThread::start uninitialised
This commit is contained in:
parent
9a06fa0bfc
commit
2c9a29e226
@ -51,7 +51,10 @@
|
|||||||
class BackgroundThreadBase : public QThread {
|
class BackgroundThreadBase : public QThread {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
BackgroundThreadBase(QObject* parent = 0) : QThread(parent), io_priority_(IOPRIO_CLASS_NONE) {}
|
BackgroundThreadBase(QObject* parent = 0)
|
||||||
|
: QThread(parent),
|
||||||
|
io_priority_(IOPRIO_CLASS_NONE),
|
||||||
|
cpu_priority_(InheritPriority) {}
|
||||||
|
|
||||||
// Borrowed from schedutils
|
// Borrowed from schedutils
|
||||||
enum IoPriority {
|
enum IoPriority {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user