QP/C++  7.0.1
Real-Time Embedded Framework
qk.cpp File Reference

QK/C++ preemptive kernel core functions. More...

#include "qf_port.hpp"
#include "qf_pkg.hpp"
#include "qassert.h"
#include "qs_port.hpp"
#include "qs_pkg.hpp"

Go to the source code of this file.

Namespaces

namespace  QP
 namespace associated with the QP/C++ framework
 

Functions

static void initial_events (void)
 process all events posted during initialization *‍/ More...
 
std::uint_fast8_t QK_sched_ (void) noexcept
 QK scheduler finds the highest-priority thread ready to run. More...
 
void QK_activate_ (void) noexcept
 QK activator activates the next active object. The activated AO preempts. More...
 

Variables

QK_Attr QK_attr_
 global attributes of the QK kernel More...
 

Detailed Description

Date
Last updated on: 2021-12-23
Version
Last updated for: Version 7.0.0, 2022-04-30

Definition in file qk.cpp.

Function Documentation

◆ QK_sched_()

std::uint_fast8_t QK_sched_ ( void  )
noexcept
Description
The QK scheduler finds out the priority of the highest-priority AO that (1) has events to process and (2) has priority that is above the current priority.
Returns
the 1-based priority of the the active object, or zero if no eligible active object is ready to run.
Attention
QK_sched_() must be always called with interrupts disabled and returns with interrupts disabled.

Definition at line 321 of file qk.cpp.

◆ QK_activate_()

void QK_activate_ ( void  )
noexcept
Description
QK_activate_() activates ready-to run AOs that are above the initial active priority (QK_attr_.actPrio).
Note
The activator might enable interrupts internally, but always returns with interrupts disabled.

Definition at line 348 of file qk.cpp.

Variable Documentation

◆ QK_attr_

QK_Attr QK_attr_

Definition at line 52 of file qk.cpp.