Mark3 Realtime Kernel
Mark3::SchedulerGuard Class Reference

The SchedulerGuard class This class implements RAII-based control of the scheduler's global state. Upon object construction, the scheduler's state is cached locally and the scheduler is disabled (if not already disabled). Upon object destruction, the scheduler's previous state is restored. This object is interrupt-safe, although it has no effect when called from an interrupt given that interrupts are inherently higher-priority than threads. More...

#include <schedulerguard.h>

Public Member Functions

 SchedulerGuard ()
 
 ~SchedulerGuard ()
 

Private Attributes

bool m_bSchedState
 

Detailed Description

The SchedulerGuard class This class implements RAII-based control of the scheduler's global state. Upon object construction, the scheduler's state is cached locally and the scheduler is disabled (if not already disabled). Upon object destruction, the scheduler's previous state is restored. This object is interrupt-safe, although it has no effect when called from an interrupt given that interrupts are inherently higher-priority than threads.

Definition at line 37 of file schedulerguard.h.

Constructor & Destructor Documentation

◆ SchedulerGuard()

Mark3::SchedulerGuard::SchedulerGuard ( )
inline

Definition at line 39 of file schedulerguard.h.

◆ ~SchedulerGuard()

Mark3::SchedulerGuard::~SchedulerGuard ( )
inline

Definition at line 44 of file schedulerguard.h.

Member Data Documentation

◆ m_bSchedState

bool Mark3::SchedulerGuard::m_bSchedState
private

Definition at line 50 of file schedulerguard.h.


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