[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] "Volatile"

From: Jeff Epler
Subject: Re: [avr-gcc-list] "Volatile"
Date: Sun, 17 Apr 2005 09:50:15 -0500
User-agent: Mutt/1.5.9i

On Sun, Apr 17, 2005 at 03:27:37PM +0200, David Brown wrote:
> If your flag is declared as "volatile unsigned char flag", then
> operations such as "flag = 0" and "flag = 1" are atomic.

But is that a requirement of the standard, or simply because
1-byte-wide stores are atomic on the AVR architecture?  I believe it's
the latter.


Attachment: pgpIbNnQBPXej.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]