-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremoteLogThread.cpp
More file actions
53 lines (45 loc) · 896 Bytes
/
remoteLogThread.cpp
File metadata and controls
53 lines (45 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* remoteLogThread.cpp
*
* Created on: 27.05.2010
* Author: cyborg-x1
*/
#include "remoteLogThread.h"
#include "remoteDataAnalysisThread.h"
remoteLogThread::remoteLogThread()
{
// TODO Auto-generated constructor stub
stop_requested=false;
}
remoteLogThread::~remoteLogThread()
{
//Wait for process to end before destruction
wait();
}
void remoteLogThread::run()
{
Fluke::Fluke189 logdev(this->interface.toStdString());
while(1)
{
{
QMutexLocker locker(&stop_mutex);
if(stop_requested)
{
stop_requested=false;
break;
}
}
Fluke::Fluke189::RCT_QD0 container=logdev.CMD_QD0(1,0,0);
emit handOverSerialResponse(container);
}
}
void remoteLogThread::setInterface(QString interface)
{
QMutexLocker locker(&stop_mutex);
this->interface=interface;
}
void remoteLogThread::stop()
{
QMutexLocker locker(&stop_mutex);
this->stop_requested=true;
}