F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
LinuxTimerComponentImplCommon.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/LinuxTimerComponentImpl.hpp
>
15
#include <
FpConfig.hpp
>
16
17
namespace
Svc
{
18
19
// ----------------------------------------------------------------------
20
// Construction, initialization, and destruction
21
// ----------------------------------------------------------------------
22
23
LinuxTimerComponentImpl ::
24
LinuxTimerComponentImpl
(
25
const
char
*
const
compName
26
) :
LinuxTimerComponentBase
(compName),
27
m_quit(false)
28
{
29
30
}
31
32
void
LinuxTimerComponentImpl ::
33
init
(
34
const
NATIVE_INT_TYPE
instance
35
)
36
{
37
LinuxTimerComponentBase::init
(instance);
38
}
39
40
LinuxTimerComponentImpl ::
41
~LinuxTimerComponentImpl
()
42
{
43
44
}
45
46
void
LinuxTimerComponentImpl::quit
() {
47
this->m_mutex.
lock
();
48
this->m_quit =
true
;
49
this->m_mutex.
unLock
();
50
}
51
52
}
// end namespace Svc
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition:
BasicTypes.h:51
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
LinuxTimerComponentImpl.hpp
Fw::ObjBase::init
void init()
Object initializer.
Definition:
ObjBase.cpp:27
Os::Mutex::unLock
void unLock()
unlock the mutex
Definition:
Mutex.cpp:13
Os::Mutex::lock
void lock()
lock the mutex
Definition:
Mutex.cpp:12
Svc::LinuxTimerComponentBase
Auto-generated base for LinuxTimer component.
Definition:
LinuxTimerComponentAc.hpp:24
Svc::LinuxTimerComponentImpl::quit
void quit()
Quit timer.
Definition:
LinuxTimerComponentImplCommon.cpp:46
Svc::LinuxTimerComponentImpl::~LinuxTimerComponentImpl
~LinuxTimerComponentImpl()
Definition:
LinuxTimerComponentImplCommon.cpp:41
Svc::LinuxTimerComponentImpl::LinuxTimerComponentImpl
LinuxTimerComponentImpl(const char *const compName)
Definition:
LinuxTimerComponentImplCommon.cpp:24
Svc
Definition:
ActiveRateGroupCfg.hpp:18
Svc
LinuxTimer
LinuxTimerComponentImplCommon.cpp
Generated by
1.9.1