This commit is contained in:
MMS 2022-10-07 11:51:33 -04:00
parent 18108b4cc7
commit 0007c4e126
2 changed files with 7 additions and 1 deletions

View File

@ -12039,9 +12039,12 @@ return curr;</code>
//! return with interrupts **disabled**.</documentation>
<!--${QXK-extern-C::QXK_contextSw::next}-->
<parameter name="next" type="QP::QActive * const"/>
<code>std::uint8_t const prev_prio = (QXK_attr_.prev != nullptr)
<code>#ifdef Q_SPY
std::uint8_t const prev_prio = (QXK_attr_.prev != nullptr)
? QXK_attr_.prev-&gt;m_prio
: 0U;
#endif // Q_SPY
std::uint8_t const next_prio = (next != nullptr)
? next-&gt;m_prio
: QXK_attr_.actPrio;

View File

@ -453,9 +453,12 @@ QP::QActive * QXK_current() noexcept {
//${QXK-extern-C::QXK_contextSw} .............................................
#if defined(Q_SPY) || defined(QXK_ON_CONTEXT_SW)
void QXK_contextSw(QP::QActive * const next) {
#ifdef Q_SPY
std::uint8_t const prev_prio = (QXK_attr_.prev != nullptr)
? QXK_attr_.prev->m_prio
: 0U;
#endif // Q_SPY
std::uint8_t const next_prio = (next != nullptr)
? next->m_prio
: QXK_attr_.actPrio;