Skip to content

Commit

Permalink
7.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum-leaps committed Oct 26, 2022
1 parent 18108b4 commit 0007c4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qpcpp.qm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/qxk/qxk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0007c4e

Please sign in to comment.