F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
InterruptLock.hpp
Go to the documentation of this file.
1 #ifndef _InterruptLock_hpp_
2 #define _InterruptLock_hpp_
3 
4 #include <FpConfig.hpp>
5 
6 namespace Os {
7  class InterruptLock {
8  public:
9 
10  InterruptLock();
11  virtual ~InterruptLock();
12 
13  void lock();
14  void unLock();
15 
17  private:
18 
19  POINTER_CAST m_key;
20  };
21 }
22 
23 #endif
PlatformPointerCastType POINTER_CAST
Definition: BasicTypes.h:53
C++-compatible configuration header for fprime configuration.
InterruptLock()
Constructor.
POINTER_CAST getKey()
get the key, if used
void unLock()
unlock interrupts
void lock()
lock interrupts
virtual ~InterruptLock()
destructor