Race condition on Queue

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

Race condition on Queue

Post by 0x3333 »

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: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Race condition on Queue

Post by Giovanni »

Hi,

Have you tried with assertions and state checker enabled?

Also, please define hangs, it is very generic.

Giovanni
Post Reply