IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
igros::arch::irq::guard Class Referencefinal

Disable interrupts in scope (restores previous state on exit). More...

#include <arch/x86/irq.hpp>

Public Member Functions

 guard () noexcept=default
 Save flags and disable interrupts.
 guard (const guard &other)=delete
 Copy c-tor.
 ~guard () noexcept
 Restore flags.
auto operator= (const guard &other) -> guard &=delete
 Copy assignment.

Private Attributes

igros_usize_t mFlags {::irqSave()}
 Saved flags (interrupts are disabled while saving).

Detailed Description

Disable interrupts in scope (restores previous state on exit).

Definition at line 175 of file irq.hpp.

Constructor & Destructor Documentation

◆ ~guard()

igros::x86::irq::guard::~guard ( )
inlinenoexcept

Restore flags.

Definition at line 186 of file irq.hpp.

Member Data Documentation

◆ mFlags

Saved flags (interrupts are disabled while saving).

Definition at line 178 of file irq.hpp.


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