|
From: | E. Weddington |
Subject: | Re: [avr-gcc-list] "Volatile" |
Date: | Mon, 18 Apr 2005 06:47:01 -0600 |
User-agent: | Mozilla Thunderbird 1.0 (Windows/20041206) |
Jeff Epler wrote:
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.
Agreed, IMHO it's the latter.
[Prev in Thread] | Current Thread | [Next in Thread] |