VR-Link API Documentation for HLA 4
 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-2025 MAK Technologies, Inc
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 
void execute(volatile bool *stopFlag)
Execute the code.
volatile bool * myStopFlag
Pointer to the stop flag.
Definition: vlRunnable.h:56
Declares the DtRunnable class for defining a object that can be run in a thread.
Definition: vlRunnable.h:28
The thread start object.
Definition: vlThread.h:35
This file contains typedefs for machine dependant types.
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:109

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)