F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
LinuxTimerCommon.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title LinuxTimerImpl.cpp
3
// \author tim
4
// \brief cpp 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
14
#include <
Svc/LinuxTimer/LinuxTimer.hpp
>
15
#include <
Fw/FPrimeBasicTypes.hpp
>
16
17
namespace
Svc
{
18
19
// ----------------------------------------------------------------------
20
// Construction, initialization, and destruction
21
// ----------------------------------------------------------------------
22
23
LinuxTimer ::
24
LinuxTimer
(
25
const
char
*
const
compName
26
) :
LinuxTimerComponentBase
(compName),
27
m_quit(false)
28
{
29
30
}
31
32
LinuxTimer ::
33
~LinuxTimer
()
34
{
35
36
}
37
38
void
LinuxTimer::quit
() {
39
this->m_mutex.
lock
();
40
this->m_quit =
true
;
41
this->m_mutex.
unLock
();
42
}
43
44
}
// end namespace Svc
FPrimeBasicTypes.hpp
Os::Mutex::unLock
void unLock()
unlock the mutex and assert success
Definition:
Mutex.cpp:40
Svc::LinuxTimer::~LinuxTimer
~LinuxTimer()
Definition:
LinuxTimerCommon.cpp:33
Svc::LinuxTimer::quit
void quit()
Quit timer.
Definition:
LinuxTimerCommon.cpp:38
Svc::LinuxTimer::LinuxTimer
LinuxTimer(const char *const compName)
Definition:
LinuxTimerCommon.cpp:24
Svc
RateGroupDivider component implementation.
Definition:
ActiveRateGroupCfg.hpp:18
Svc::LinuxTimerComponentBase
Auto-generated base for LinuxTimer component.
Definition:
LinuxTimerComponentAc.hpp:22
LinuxTimer.hpp
Os::Mutex::lock
void lock()
lock the mutex and assert success
Definition:
Mutex.cpp:34
Svc
LinuxTimer
LinuxTimerCommon.cpp
Generated by
1.8.14