VR-Link API Documentation for HLA 1.3
vlRunnable.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00008 #pragma once
00009 #include "vlMachineTypes.h"
00010 
00011 #ifdef DtUSE_UTILITIES_NAMESPACE
00012 namespace DtUSE_UTILITIES_NAMESPACE
00013 {
00014 #endif
00015 
00016    
00017 
00028 class DT_DLL_VLUTIL DtRunnable
00029 {
00030 public:
00031 
00033    DtRunnable();
00034 
00036    virtual ~DtRunnable();
00037 
00039    virtual void run()  = 0;   
00040 
00043    virtual void stop();
00044 
00046    bool timeToStop();
00047 
00048 protected:
00049    friend class DtThreadStart;   
00050 
00052    void execute(volatile bool* stopFlag);
00053 
00054 protected:
00056    volatile bool* myStopFlag;   
00057 };
00058 
00059 #ifdef DtUSE_UTILITIES_NAMESPACE
00060 } 
00061 #endif
00062 
00063 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)