stec-platform
vremthread.h
1 /*
2 *
3 * $LastChangedDate: $
4 * $LastChangedBy: $
5 * $Revision: $
6 * $Author: $
7 * $URL: $
8 * $Id: $
9 * edc@vremsoft.com
10 *
11 *
12 * *** 2014<c> ***
13 *
14 *
15 */
16 
17 #ifndef VREMTHREAD_H
18 #define VREMTHREAD_H
19 
20 #include <QThread>
21 #include <QWaitCondition>
22 #include <QMutex>
23 
24 #include "platform_global.h"
25 
35 class PLATFORMSHARED_EXPORT VremThread : public QThread
36 {
37 Q_OBJECT
38 private :
39  DLock<bool> continueRun;
40 
41 public :
43  VremThread( QObject *parent = 0);
44 
45 
47  virtual void WakeMeUp(void) {}
48 
50  bool cleanExit(int MaxdelayToTerminate_ms=10000);
51 
53  bool ContinueToRun(void);
54 
55 };
56 
57 #endif // VREMTHREAD_H
The VremThread class Vremthead is a normal thread, but is constructed so that the loader or vrem prog...
Definition: vremthread.h:36
virtual void WakeMeUp(void)
user should use to trigger event if it gets hit, user should exit run
Definition: vremthread.h:47