mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-14 05:42:57 +08:00
7.1.2
This commit is contained in:
parent
18108b4cc7
commit
0007c4e126
5
qpcpp.qm
5
qpcpp.qm
@ -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->m_prio
|
||||
: 0U;
|
||||
#endif // Q_SPY
|
||||
|
||||
std::uint8_t const next_prio = (next != nullptr)
|
||||
? next->m_prio
|
||||
: QXK_attr_.actPrio;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user