VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vlRunnable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
8 #pragma once
9 #include "vlMachineTypes.h"
10 
11 #ifdef DtUSE_UTILITIES_NAMESPACE
12 namespace DtUSE_UTILITIES_NAMESPACE
13 {
14 #endif
15 
16 
17 
29 {
30 public:
31 
33  DtRunnable();
34 
36  virtual ~DtRunnable();
37 
39  virtual void run() = 0;
40 
43  virtual void stop();
44 
46  bool timeToStop();
47 
48 protected:
49  friend class DtThreadStart;
50 
52  void execute(volatile bool* stopFlag);
53 
54 protected:
56  volatile bool* myStopFlag;
57 };
58 
59 #ifdef DtUSE_UTILITIES_NAMESPACE
60 }
61 #endif
62 
63 

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)