Queue Implementation

Discussions and support about ChibiOS/RT, the free embedded RTOS.
chrismerck
Posts: 21
Joined: Fri Mar 14, 2014 12:35 am
Been thanked: 4 times

Queue Implementation

Postby chrismerck » Fri Aug 22, 2014 4:09 pm

Is there an inter-thread queue implementation in ChibiOS which can hold objects of fixed size? Mailboxes only hold pointers to data. I want to store the actual data on the queue.

I could of course implement one, but I'd prefer to use some built-in functionality if possible.

Thanks.

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

Re: Queue Implementation

Postby Giovanni » Fri Aug 22, 2014 6:28 pm

Hi,

What you need is a pool of objects plus a mailbox. If you need an example checkout revision 4147, under /os/various you will find mail.c and mail.h. I haven't tested those much some some people reported it working.

I will look into adding this, or something similar, to 3.0 as a library module.

Giovanni


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 4 guests