Priority Inversion bug when DEBUG_ASSERTIONS not enabled.

10 views
Skip to first unread message

Şükrü Bahadır Arslan

unread,
Apr 11, 2020, 11:07:21 AM4/11/20
to NuttX
Hello,
I am testing priority inversion feauture of Nuttx scheduler. I encounter with problem in tests.
Here is problem:
nxsched_readytorun_setpriority() function not works as expected when DEBUG_ASSERTION not enabled. Because sched_removereadytorun() and sched_addreadytorun() is not called in this case. These functions wrapped with DEBUGASSERT macro and with the effect of DEBUGASSERT macro, sched_removereadytorun() and sched_addreadytorun() not called when DEBUG_ASSERTION not enabled. Therefore priority inversion not works as expected.

Could you check this problem ? Is this a bug, if not what is the purpose of this code ? 
Thanks,
Şükrü Bahadır Arslan
Reply all
Reply to author
Forward
0 new messages