This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Atomic types
- From: manu shetty <shetty_m at yahoo dot com>
- To: Nick Garnett <nickg at ecoscentric dot com>, ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 2 Aug 2006 03:41:23 -0700 (PDT)
- Subject: Re: [ECOS] Atomic types
So, if I define the variable as atomic then the
following operation happens uninterruptible
cyg_halatomic i;
i=0;
i+=1;
i-=1;
--- Nick Garnett <nickg@ecoscentric.com> wrote:
> manu shetty <shetty_m@yahoo.com> writes:
>
> > Hi,
> > Please let me know the related HAL Interface
> for
> > the below data type:
> >
> > Atomic types
> >
> > cyg_halatomic CYG_ATOMIC
> >
> > These types are guaranteed to be read or written
> in a
> > single uninterruptible operation. It is
> architecture
> > defined what size this type is, but it will be at
> > least a byte.
>
>
> There are no HAL interfaces that use this. It is
> just a type, supplied
> for application use.
>
> --
> Nick Garnett eCos
> Kernel Architect
> http://www.ecoscentric.com The eCos and
> RedBoot experts
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss