![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2010 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: waitForAssistantShutdown.h,v $ $Revision: 1.0 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef _WAIT_FOR_ASSISTANT_SHUTDOWN_H_ 00010 #define _WAIT_FOR_ASSISTANT_SHUTDOWN_H_ 00011 00012 #ifdef _WIN32 00013 00014 #include <qdialog.h> 00015 #include <vlutil/vlThread.h> 00016 #include <vlutil/vlRunnable.h> 00017 #include <vlThreadSafeQueue.h> 00018 #include <vlutil/vlThreadSafe.h> 00019 00020 class waitForAssistantShutdown : public MAKRti::DtRunnable 00021 { 00022 public: 00023 waitForAssistantShutdown( void * hProcess, void * hThread ); 00024 virtual ~waitForAssistantShutdown(); 00025 virtual void run(); 00026 virtual bool hasFinishedShuttingDown(); 00027 virtual bool hasTimedOut(); 00028 00029 protected: 00030 void * myHProcess; 00031 void * myHThread; 00032 00033 int myTimeOutCounter; 00034 00035 bool myHasFinished; 00036 bool myHasTimedOut; 00037 }; 00038 00039 inline bool waitForAssistantShutdown::hasFinishedShuttingDown() 00040 { 00041 return myHasFinished; 00042 } 00043 00044 inline bool waitForAssistantShutdown::hasTimedOut() 00045 { 00046 return myHasTimedOut; 00047 } 00048 00049 00050 #endif // _WIN32 00051 #endif // _WAIT_FOR_ASSISTANT_SHUTDOWN_H_