This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]