priority order violation Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
User avatar
wurstnase
Posts: 121
Joined: Tue Oct 17, 2017 2:24 pm
Has thanked: 43 times
Been thanked: 30 times

priority order violation

Post by wurstnase »

Hi,

I just saw an issue with a "priority order violation" after an unlock.

My code looks like:

Code: Select all

chSysLock();
chEvtBroadcastFlagsI(&menu_es, 0);
chMtxUnlockAllS();
chSysUnlock();


Shouldn't the chMtxUnlockAllS() reschedule in any case?
I was stepping with the debugger in a second thread while this occur.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: priority order violation

Post by Giovanni »

Hi,

Good point, it should.

chMtxUnlockAll() uses it internally and then reschedules explicitly, this should not be required.

I was going to release 20.3.0, this will be fixed in 20.3.1.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: priority order violation

Post by Giovanni »

Hi,

Fixed as bug #1076.

Giovanni
Post Reply