modm API documentation
modm::rtos::Thread::Lock Class Reference

When created suspends all real time kernel activity while keeping interrupts (including the kernel tick) enabled. More...

#include <modm/processing/rtos/thread.hpp>

Detailed Description

When created suspends all real time kernel activity while keeping interrupts (including the kernel tick) enabled.

After creating a instance the calling thread will continue to execute without risk of being swapped out until the destruction of the lock instance.

API functions that have the potential to cause a context switch (for example, delay()) must not be called while the scheduler is suspended.


The documentation for this class was generated from the following file: