repo.or.cz
/
agianapa.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "Use fabs() for floats, not abs()".
[agianapa.git]
/
sphere-orbit
/
workerthread.h
blob
068eaf91bc95263cb491da807607b189e0ca65af
1
#include <QMutex>
2
#include <QQueue>
3
#include <QThread>
4
#include <QWaitCondition>
5
6
class
WorkerThread
:
public
QThread
7
{
8
Q_OBJECT
9
10
public
:
11
WorkerThread
(
QObject
*
parent
=
0
,
QQueue
<
float
> *
pdata
=
NULL
);
12
~
WorkerThread
();
13
void
setData
(
QQueue
<
float
> *
pData
);
14
QWaitCondition condition
;
15
16
protected
:
17
void
run
();
18
19
private
:
20
QMutex mutex
;
21
QQueue
<
float
> *
pData
;
22
float
prev
;
23
bool
abort
;
24
};
25