Menu

#179 Assertion ID 210 fires when signaling on a QXK semaphore

QP
closed
None
1
2024-08-01
2017-07-20
No

When signaling on a QXK semaphore, the assertion ID 210 fires. The problem seems to be introduced in QP/C/C++ 5.9.4, where the TLS (Thread Local Storage) was introduced. The assertion shouild be changed from:

Q_ASSERT_ID(210,
    (thr->super.thread != (struct QActive *)0) /* must be extended */
    && (me->count == (uint_fast16_t)0)); /* sema counter must be 0 */

to

Q_ASSERT_ID(210,
    (thr->super.osObject != (struct QActive *)0) /* must be extended */
    && (me->count == (uint_fast16_t)0)); /* sema counter must be 0 */

--MMS

Discussion

  • Quantum Leaps

    Quantum Leaps - 2017-07-20
    • status: open --> closed
     
  • Quantum Leaps

    Quantum Leaps - 2017-07-20

    Fixed in QP/C/C++ 5.9.5.
    --MMS

     
  • Quantum Leaps

    Quantum Leaps - 2017-09-07
    • Group: QP-C --> QP-C-C++
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB