Subj : Re: Concurrent write undefined? To : comp.programming.threads From : Joe Seigh Date : Tue May 24 2005 08:02 am On Mon, 23 May 2005 22:08:04 -0500, Mikhail Polatov wrote: > "Joe Seigh" writes: > > >> There's some atomic types defined in one of the Linux headers >> somewhere, atomic.h IIRC. The atomicity thing for C/C++ isn't >> documented anywhere, it's an article of faith or some sort of secret >> knowlege shared only be a few Linux Illuminati. > > That's right. Neither C nor C++ Standard say anything regarding > threads or atomicity of operations during a program execution. The > latter can probably be true for some combination of a language > statement/compiler/hardware after an examination of disassembled code. > That's after the fact. That means that every time you modify the program you have to reexamine the disassembled code to verify that stuff is still atomic. If you skip that step, then it's an article of faith. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .