This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Message boxes
- To: (Alfredo Carrillo) <jalfredoc at netscape dot net>
- Subject: RE: [ECOS] Message boxes
- From: Gary Thomas <gthomas at cambridge dot redhat dot com>
- Date: Mon, 04 Jun 2001 17:00:01 -0600 (MDT)
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat, Inc.
On 04-Jun-2001 Alfredo Carrillo wrote:
> Hi,
>
> I am using message boxes for exange information between two threads, but
> need to pass a structure, not only simple data as 'int' or 'char'. When
> I compile my program, the compiler shows as follows:
>
> cannot convert from type 'MyTYPE' to type 'void*'
>
> How could I use types defined by me to interchange info?
>
> Thanks a lot for any inormation.
One way is to use the message box to pass pointers to these more complex
data. They, in turn, will need to come from some pool which your program
would have to manage.