[ECOS] ecos state machine
张 亮
johnsonest@hotmail.com
Tue Aug 13 22:50:00 GMT 2002
hi,nickg!
mail box in ecos maybe unsafe :
char *msg="hello!nickg";
cyg_mbox_put(mbox,(void*)msg);
...
free(msg);
return //danger:if now msg has not yet received.
>From: Nick Garnett <nickg@calivar.demon.co.uk>
>To: ÃÃ
ÃÃ <johnsonest@hotmail.com>
>CC: ecos-discuss@sources.redhat.com
>Subject: Re: [ECOS] ecos state machine
>Date: 07 Aug 2002 12:33:58 +0100
>
>ÃÃ
ÃÃ <johnsonest@hotmail.com> writes:
>
> > hi,nikg!
> > i have a question to consult you:
> > In ecos,why thread_data_map was defined as "static" type?
> > so all threads share this variable,just like global variable in
C,right?
> >
>
>[Please remember to copy all messages to the ecos-discuss list. That
>way others can benefit from the discussion and it will be archived for
>future reference.]
>
>The intended use of the per-thread data is that a slot that is
>reserved by a library or some other component does so for all
>threads. Hence the map must be global.
>
>--
>Nick Garnett -
_________________________________________________________________
Ãâ·ÃÃÃÃà MSN Explorer: http://explorer.msn.com/lccn/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list