F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
TaskLock.hpp
Go to the documentation of this file.
1 // File: TaskLock.hpp
2 // Author: Nathan Serafin (nathan.serafin@jpl.nasa.gov)
3 // Date: 25 June, 2018
4 //
5 // OS-independent wrapper to lock out task switching.
6 
7 #ifndef _TaskLock_hpp_
8 #define _TaskLock_hpp_
9 
10 #include <FpConfig.hpp>
11 
12 namespace Os {
13  class TaskLock {
14  public:
15  static I32 lock();
16  static I32 unLock();
17  };
18 }
19 
20 #endif
C++-compatible configuration header for fprime configuration.
static I32 lock()
Lock task switching.
static I32 unLock()
Unlock task switching.