F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
c
f
h
i
l
m
n
o
p
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
t
u
w
Enumerations
b
c
d
e
f
g
h
i
m
o
p
q
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
a
b
c
f
g
h
l
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Functions
f
i
m
s
u
Variables
_
c
f
i
l
p
t
Typedefs
Enumerations
Enumerator
a
c
d
f
i
m
p
r
s
t
w
Macros
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
LockGuard.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title LockGuard.cpp
3
// \author vwong
4
// \brief cpp file for a lock guard utility class
5
//
6
//
7
// \copyright
8
// Copyright (C) 2009-2020 California Institute of Technology.
9
// ALL RIGHTS RESERVED. United States Government Sponsorship
10
// acknowledged.
11
// ======================================================================
12
13
#include "
Utils/LockGuard.hpp
"
14
15
namespace
Utils
{
16
17
LockGuard ::
18
LockGuard
(
19
Os::Mutex
& mutex
20
) :
21
m_mutex(mutex)
22
{
23
this->m_mutex.
lock
();
24
}
25
26
LockGuard ::
27
~LockGuard
()
28
{
29
this->m_mutex.
unLock
();
30
}
31
32
}
// end namespace Utils
Utils::LockGuard::LockGuard
LockGuard(Os::Mutex &mutex)
Definition:
LockGuard.cpp:18
Os::Mutex::lock
void lock(void)
lock the mutex
Definition:
Mutex.cpp:12
Os::Mutex::unLock
void unLock(void)
unlock the mutex
Definition:
Mutex.cpp:13
Utils
Definition:
CRCChecker.cpp:20
Utils::LockGuard::~LockGuard
~LockGuard()
Definition:
LockGuard.cpp:27
Os::Mutex
Definition:
Mutex.hpp:8
LockGuard.hpp
Utils
LockGuard.cpp
Generated by
1.8.19