Class for handling critical sections.
More...
#include <Imt.Base.Dff.Runtime/RuntimeCriticalSection.h>
Class for handling critical sections.
Critical section are entered by enter(), and subsequently exited by calling exit(). They provided a basic implementation that simple disables IRQ. In contrast to RuntimeInterrupt the enter/exit mechanism can be nested.
It's recommended to call enter() at application start and exit it before RuntimeCore::start() is called
◆ enter()
static void imt::base::dff::runtime::RuntimeCriticalSection::enter |
( |
| ) |
|
|
static |
Enters a critical section.
◆ exit()
static void imt::base::dff::runtime::RuntimeCriticalSection::exit |
( |
| ) |
|
|
static |
Exits a critical section when there is no more recursions.
◆ isInCriticalSection()
static bool imt::base::dff::runtime::RuntimeCriticalSection::isInCriticalSection |
( |
| ) |
|
|
static |
- Returns
- true when context is in critical section, otherwise false
◆ reset()
static void imt::base::dff::runtime::RuntimeCriticalSection::reset |
( |
| ) |
|
|
static |
Reset critical section, this enables irq in any case.
The documentation for this class was generated from the following file: