This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
AW: Global variables in eCos program. Access accross threads??
- From: "Neundorf, Alexander" <Alexander dot Neundorf at jenoptik dot com>
- To: "Praveen K M" <praveenkm2005 at gmail dot com>, <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 2 Aug 2005 15:40:04 +0200
- Subject: AW: [ECOS] Global variables in eCos program. Access accross threads??
> Von: ecos-discuss-owner@ecos.sourceware.org
>
> Hi,
>
> Global variables are declared in a eCos program. Can these global
> variables accessed by all the threads(started in that program), ISRs
> and DSRs belonging to that program?
>
> thanks,
> praveen.
Yes, but you have to ensure that you access them properly synchronized (if this is required).
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