Race condition on Queue

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
0x3333
Posts: 57
Joined: Thu Mar 07, 2019 10:19 pm
Has thanked: 7 times
Been thanked: 6 times

Race condition on Queue

Postby 0x3333 » Tue Oct 15, 2019 8:21 pm

Hi!

I have a doubt regarding race condition in a queue.

If I have 2 threads writing to the same Serial object and the queue gets full(Serial baud is slow for example), the application hangs. Is it possible or I'm doing something stupid?

Thanks.

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

Re: Race condition on Queue

Postby Giovanni » Tue Oct 15, 2019 8:40 pm

Hi,

Have you tried with assertions and state checker enabled?

Also, please define hangs, it is very generic.

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 1 guest