Re: How to do atomic read?




"Mark Roddy" <markr@xxxxxxxxxxxxxx> wrote in message
news:OIGtTy0sHHA.2124@xxxxxxxxxxxxxxxxxxxxxxx

Yeah, I'd be fascinated by that explanation. But atomic reads are silly.
What is the point?

One point is that it provides a memory fence. That's pretty much the only
point.

In 64 bit variant, also, InterlockedCompareExchange64 allows to atomically
fetch 64 bits, which is not guaranteed by other C-compiler means on 32 bit
machine.


.



Relevant Pages

  • Re: Your help requested with colloctations
    ... Any chance I've spotted an explanation? ... Leicestershire, me duck! ...
    (uk.media.radio.archers)
  • Re: DeLay gone
    ... with him quitting. ... explanation for why he quit. ... because he's worried about the good of the party. ... Yeah, I also marked for how he backhandedly made himself look stupid. ...
    (rec.sport.pro-wrestling)
  • Re: backgammon literature is not specialized
    ... Best explanation that I've read, from a long-ago post in in r.g.bg: ... "Yeah. ... Gaby heard a shot. ...
    (rec.games.backgammon)
  • Re: Texas BBQ Brisket?
    ... I'd like a good explaination of exactly how this works. ... Yeah, me too. ... throw in an explanation of ... brining that makes any kind of sense. ...
    (rec.food.cooking)
  • Re: [PATCH] aio: remove unused function aio_run_iocbs()
    ... Jeff Moyer wrote: ... Seems like it's time to just get rid of it. ... for an explanation of why it's still there. ... Yeah, I'm still of the opinion that the cost of having to resurrect it ...
    (Linux-Kernel)

Loading