Dataflow Runtime API  4.0.1.0
Static Public Member Functions | List of all members
imt::base::dff::runtime::RuntimeCriticalSection Class Reference

Class for handling critical sections. More...

#include <Imt.Base.Dff.Runtime/RuntimeCriticalSection.h>

Static Public Member Functions

static void enter ()
 Enters a critical section. More...
 
static void exit ()
 Exits a critical section when there is no more recursions. More...
 
static bool isInCriticalSection ()
 
static void reset ()
 Reset critical section, this enables irq in any case. More...
 

Detailed Description

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

Member Function Documentation

◆ 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: