µOS++ IIIe Reference  v6.3.15
“Perfekt ist nicht gut genug”
The third edition of µOS++, a POSIX inspired open source system, written in C++.
os::rtos::interrupts Namespace Reference

Interrupts namespace. More...

Classes

class  critical_section
 Interrupts critical section RAII helper. More...
 
class  lockable
 Interrupts standard locker. More...
 
class  uncritical_section
 Interrupts critical section RAII helper. More...
 

Types

using state_t = port::interrupts::state_t
 Type of variables holding interrupts statu codes. More...
 

Functions

bool in_handler_mode (void)
 Check if the CPU is in handler mode. More...
 
class thread::stackstack (void)
 Get the interrupts stack. More...
 

Detailed Description

Interrupts namespace.

The os::rtos::interrupts namespace groups interrupts related types and enumerations.

Types

◆ state_t

using os::rtos::interrupts::state_t = typedef port::interrupts::state_t

Type of variables holding interrupts statu codes.

Usually an integer large enough to hold the CPU register where the interrupt priorities are stored.

Used to temporarily store the CPU register during critical sections.

Definition at line 243 of file os-decls.h.

Function Documentation

◆ in_handler_mode()

bool os::rtos::interrupts::in_handler_mode ( void  )
inline

Check if the CPU is in handler mode.

Parameters
None.
Return values
trueExecution is in an exception handler context.
falseExecution is in a thread context.
Note
Can be invoked from Interrupt Service Routines (obviously).

Definition at line 1091 of file os-sched.h.