InterruptLock.hpp 509 B

1234567891011121314151617181920212223
  1. #ifndef _InterruptLock_hpp_
  2. #define _InterruptLock_hpp_
  3. #include <FpConfig.hpp>
  4. namespace Os {
  5. class InterruptLock {
  6. public:
  7. InterruptLock(); //!< Constructor
  8. virtual ~InterruptLock(); //!< destructor
  9. void lock(); //!< lock interrupts
  10. void unLock(); //!< unlock interrupts
  11. POINTER_CAST getKey(); //!< get the key, if used
  12. private:
  13. POINTER_CAST m_key; //!< storage of interrupt lock key if used
  14. };
  15. }
  16. #endif