TaskLock.hpp 416 B

1234567891011121314151617181920
  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. #ifndef _TaskLock_hpp_
  7. #define _TaskLock_hpp_
  8. #include <FpConfig.hpp>
  9. namespace Os {
  10. class TaskLock {
  11. public:
  12. static I32 lock(); //!< Lock task switching
  13. static I32 unLock(); //!< Unlock task switching
  14. };
  15. }
  16. #endif