F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LinuxTimerComponentImpl.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"
18 
19 namespace Svc {
20 
23  {
24 
25  public:
26 
27  // ----------------------------------------------------------------------
28  // Construction, initialization, and destruction
29  // ----------------------------------------------------------------------
30 
34  const char *const compName
35  );
36 
40 
42  void startTimer(NATIVE_INT_TYPE interval);
43 
45  void quit();
46 
47  PRIVATE:
48 
49  Os::Mutex m_mutex;
50 
51  volatile bool m_quit;
52 
53  Os::RawTime m_rawTime;
54 
55 
56  };
57 
58 } // end namespace Svc
59 
60 #endif
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:55
Auto-generated base for LinuxTimer component.
void startTimer(NATIVE_INT_TYPE interval)
Start timer.
LinuxTimerComponentImpl(const char *const compName)