F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
LinuxTimer.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title LinuxTimerImpl.hpp
3 // \author tim
4 // \brief hpp file for LinuxTimer component implementation class
5 //
6 // \copyright
7 // Copyright 2009-2015, by the California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12 
13 #ifndef LinuxTimer_HPP
14 #define LinuxTimer_HPP
15 
16 #include "Os/Mutex.hpp"
17 #include "Os/RawTime.hpp"
19 
20 namespace Svc {
21 
22 class LinuxTimer final : public LinuxTimerComponentBase {
23  public:
24  // ----------------------------------------------------------------------
25  // Construction, initialization, and destruction
26  // ----------------------------------------------------------------------
27 
30  LinuxTimer(const char* const compName
31  );
32 
35  ~LinuxTimer();
36 
38  void startTimer(FwSizeType interval);
39 
41  void quit();
42 
43  private:
44  Os::Mutex m_mutex;
45 
46  volatile bool m_quit;
47 
48  Os::RawTime m_rawTime;
49 };
50 
51 } // end namespace Svc
52 
53 #endif
PlatformSizeType FwSizeType
void quit()
Quit timer.
LinuxTimer(const char *const compName)
void startTimer(FwSizeType interval)
Start timer.
RateGroupDivider component implementation.
Auto-generated base for LinuxTimer component.