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.
Queue Implementation
-
- Posts: 21
- Joined: Fri Mar 14, 2014 12:35 am
- Been thanked: 4 times
- 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
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
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
Who is online
Users browsing this forum: No registered users and 4 guests