F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
InterruptLock.cpp
Go to the documentation of this file.
1
#include <
Os/InterruptLock.hpp
>
2
#include <
Os/Mutex.hpp
>
3
4
STATIC
Os::Mutex
intLockEmulator
;
5
6
namespace
Os
{
7
InterruptLock::InterruptLock
() : m_key(0) {}
8
InterruptLock::~InterruptLock
() {}
9
10
void
InterruptLock::lock
() {
11
intLockEmulator
.
lock
();
12
}
13
14
void
InterruptLock::unLock
() {
15
intLockEmulator
.
unLock
();
16
}
17
18
19
}
20
21
STATIC
#define STATIC
static for non unit-test code
Definition:
BasicTypes.h:71
intLockEmulator
STATIC Os::Mutex intLockEmulator
Definition:
InterruptLock.cpp:4
InterruptLock.hpp
Mutex.hpp
Os::InterruptLock::InterruptLock
InterruptLock()
Constructor.
Definition:
InterruptLock.cpp:7
Os::InterruptLock::unLock
void unLock()
unlock interrupts
Definition:
InterruptLock.cpp:14
Os::InterruptLock::lock
void lock()
lock interrupts
Definition:
InterruptLock.cpp:10
Os::InterruptLock::~InterruptLock
virtual ~InterruptLock()
destructor
Definition:
InterruptLock.cpp:8
Os::Mutex
Definition:
Mutex.hpp:8
Os::Mutex::unLock
void unLock()
unlock the mutex
Definition:
Mutex.cpp:13
Os::Mutex::lock
void lock()
lock the mutex
Definition:
Mutex.cpp:12
Os
Definition:
File.cpp:6
Os
Linux
InterruptLock.cpp
Generated by
1.9.1