This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
AW: FW: Mailboxes - priorities of messages
- From: "Neundorf, Alexander" <Alexander dot Neundorf at jenoptik dot com>
- To: "Han Hoekstra" <Han dot Hoekstra at WirelessValue dot nl>, "'Ecos-Discuss (E-Mail)" <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 29 Jun 2004 14:47:51 +0200
- Subject: AW: [ECOS] FW: [ECOS] Mailboxes - priorities of messages
...
> 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