Race condition on Queue

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
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


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?


User avatar
Site Admin
Posts: 12855
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 712 times
Been thanked: 592 times

Re: Race condition on Queue

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


Have you tried with assertions and state checker enabled?

Also, please define hangs, it is very generic.


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 0 guests