PeriodicThreadImplEmulate.h
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 // This file is part of FZIs ic_workspace.
00005 //
00006 // This program is free software licensed under the LGPL
00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
00008 // You can find a copy of this license in LICENSE folder in the top
00009 // directory of the source code.
00010 //
00011 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
00014 
00015 //----------------------------------------------------------------------
00029 //----------------------------------------------------------------------
00030 #ifndef ICL_CORE_THREAD_PERIODIC_THREAD_IMPL_EMULATE_H_INCLUDED
00031 #define ICL_CORE_THREAD_PERIODIC_THREAD_IMPL_EMULATE_H_INCLUDED
00032 
00033 #include <icl_core/TimeSpan.h>
00034 #include <icl_core/TimeStamp.h>
00035 
00036 #include "icl_core_thread/PeriodicThreadImpl.h"
00037 
00038 namespace icl_core {
00039 namespace thread {
00040 
00041 class PeriodicThreadImplEmulate : public PeriodicThreadImpl, protected virtual icl_core::Noncopyable
00042 {
00043 public:
00044   PeriodicThreadImplEmulate(const icl_core::TimeSpan& period);
00045   virtual ~PeriodicThreadImplEmulate();
00046 
00047   virtual void makePeriodic() { }
00048   virtual icl_core::TimeSpan period() const { return m_period; }
00049   virtual bool setPeriod(const icl_core::TimeSpan& period);
00050   virtual void waitPeriod();
00051 
00052 private:
00053   icl_core::TimeSpan m_period;
00054   icl_core::TimeStamp m_last_execution_time;
00055 };
00056 
00057 }
00058 }
00059 
00060 #endif


fzi_icl_core
Author(s):
autogenerated on Thu Jun 6 2019 20:22:24