QGCUASWorker.cc 355 Bytes
Newer Older
1
2
3
#include "QGCUASWorker.h"

#include <QGC.h>
4
5
#include <QCoreApplication>
#include <QDebug>
6

7
8
QGCUASWorker::QGCUASWorker() : QThread(),
    _should_exit(false)
9
10
11
{
}

12
13
14
15
16
void QGCUASWorker::quit()
{
    _should_exit = true;
}

17
18
void QGCUASWorker::run()
{
19
20
21
22
23
    while(!_should_exit) {

        QCoreApplication::processEvents();
        QGC::SLEEP::msleep(2);
    }
24
}