AW: [ECOS] FW: [ECOS] Mailboxes - priorities of messages

Neundorf, Alexander Alexander.Neundorf@jenoptik.com
Tue Jun 29 12:47:00 GMT 2004


...
> last. Also I made my own mailbox implementation which uses 
> the eCos Mailbox
> API to implement the actual message queue, the only thing my 
> mailbox does
> extra is trigger the semaphore every time a message is placed 
> in the queue,
> so that the receive process will start. The sending process 
> only has to
> place the message in the correct mailbox, which corresponds 
> to the priority
> of the message.....
> 
> Greetings,
>    Han

You could also wait on a condition variable, which is signalled when a message is inserted into any of the message queues you are interested in.

Alex

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list