This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ecos state machine
- From: Nick Garnett <nickg at calivar dot demon dot co dot uk>
- To: =?gb2312?b?1cUgwcE=?= <johnsonest at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 07 Aug 2002 12:33:58 +0100
- Subject: Re: [ECOS] ecos state machine
- References: <F76K4xDh9vXsFFsAitV000000c3@hotmail.com>
ÕÅ ÁÁ <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 - eCos Kernel Architect
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss