10 years, 11 months ago.

What happens if queue is full?

Hello,

I'm asking myself what happens if a queue gets full, because the consumer thread is too slow? Are older messages 'kicked off' or will the system lock up?

Thanks,

Michael

1 Answer

10 years, 11 months ago.

http://mbed.org/users/mbed_official/code/mbed-rtos/docs/db1fc233faa9/classrtos_1_1Queue.html

The put call will block for the specified amount of milliseconds, if not provided it defaults to 0.

The call then returns a status code from the enum defined in cmsis_os.h (search for "osStatus").

Accepted Answer