🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #448

Re: 'volatile' in Norcroft/Acorn C

#448
From: Ug!
Date: Wed, 30 Sep 1992 00:36
15 lines
1054 bytes
Clive Jones writes:
> It would be very nice if the compound assignment operators (+=, -=,
> *=, etc.) were atomic if applied to volatile variables.

That's a *really* good idea!  In fact, ANSI does not decree that volatile
need effect anything, but it would be nice to see it used in this
manner.  Having easy access to atomic instructions would make thinks like
high-level synchonisation possible, without getting down and dirty and
doing it in assembler (which all too often loses the meaning of the
operation).

If it hasn't been done, then I for one would also vote for this!  (as if
deciding what goes into a product is a democratic process...  boy, are we
dumb or what?)
								Ug!
Technical Details
Message-ID: <1992Sep30.123651.11122@waikato.ac.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!gumby!wupost!waikato.ac.nz!bwc
References: <1992Sep29.160306.6352@infodev.cam.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gumby!wupost!waikato.ac.nz!bwc
From: bwc@waikato.ac.nz (Ug!)
Newsgroups: comp.sys.acorn.tech
Subject: Re: 'volatile' in Norcroft/Acorn C
Message-ID: <1992Sep30.123651.11122@waikato.ac.nz>
Date: 30 Sep 92 12:36:51 +1200
References: <1992Sep29.160306.6352@infodev.cam.ac.uk>
Organization: Vooniersity fo Kaiwato
Lines: 15