priority order violation Topic is solved

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

priority order violation  Topic is solved

Postby wurstnase » Tue Mar 17, 2020 4:04 pm

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.
\o/ Nico

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: priority order violation

Postby Giovanni » Tue Mar 17, 2020 5:09 pm

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: priority order violation

Postby Giovanni » Fri Mar 20, 2020 9:58 am

Hi,

Fixed as bug #1076.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 5 guests