MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
waitForAssistantShutdown.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: waitForAssistantShutdown.h,v $ $Revision: 1.0 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef _WAIT_FOR_ASSISTANT_SHUTDOWN_H_
10 #define _WAIT_FOR_ASSISTANT_SHUTDOWN_H_
11 
12 #ifdef _WIN32
13 
14 #include <QtGui/QDialog>
15 #include <vlutil/vlThread.h>
16 #include <vlutil/vlRunnable.h>
17 #include <vlThreadSafeQueue.h>
18 #include <vlutil/vlThreadSafe.h>
19 
20 class waitForAssistantShutdown : public MAKRti::DtRunnable
21 {
22 public:
23  waitForAssistantShutdown( void * hProcess, void * hThread );
24  virtual ~waitForAssistantShutdown();
25  virtual void run();
26  virtual bool hasFinishedShuttingDown();
27  virtual bool hasTimedOut();
28 
29 protected:
30  void * myHProcess;
31  void * myHThread;
32 
33  int myTimeOutCounter;
34 
35  bool myHasFinished;
36  bool myHasTimedOut;
37 };
38 
39 inline bool waitForAssistantShutdown::hasFinishedShuttingDown()
40 {
41  return myHasFinished;
42 }
43 
44 inline bool waitForAssistantShutdown::hasTimedOut()
45 {
46  return myHasTimedOut;
47 }
48 
49 
50 #endif // _WIN32
51 #endif // _WAIT_FOR_ASSISTANT_SHUTDOWN_H_

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)