Re: mutex question
- From: "Slava M. Usov" <stripit.slough@xxxxxxx>
- Date: Fri, 5 May 2006 23:37:29 +0200
"Tom Widmer [VC++ MVP]" <tom_usenet@xxxxxxxxxxx> wrote in message
news:uGzVlhEcGHA.3900@xxxxxxxxxxxxxxxxxxxxxxx
[...]
I didn't think we were talking about the C++ standard, but about the
utility of the volatile keyword.
You disputed somebody else's statements "about the utility of the volatile
keyword". The statements you disputed had been confirmed experimentally.
That can be disputed only with an assumption that the implementation of the
language was non-conformant with the standard. Non-conformance with a
standard cannot be demonstrated if the standard is not cited.
[...]
Volatile is sufficient for any reads and writes. This is its entire and
only purpose.
Any reads and writes of what in what context? Are you talking about
multithreading now (the main topic of this thread) or about the standard
C++ abstract machine (which is of course single threaded, and therefore
off-topic)?
I do not need any context to talk about the sufficiency of a volatile
qualifier for reads and writes. Whatever the context, reads and writes to a
volatile object are guaranteed to happen.
S
.
- Follow-Ups:
- Re: mutex question
- From: Tom Widmer [VC++ MVP]
- Re: mutex question
- References:
- Re: mutex question
- From: David Jones
- Re: mutex question
- From: Tom Widmer [VC++ MVP]
- Re: mutex question
- From: Slava M. Usov
- Re: mutex question
- From: Tom Widmer [VC++ MVP]
- Re: mutex question
- From: Slava M. Usov
- Re: mutex question
- From: Tom Widmer [VC++ MVP]
- Re: mutex question
- Prev by Date: Re: Help me, Which library has KeTryToAcquireSpinLockAtDpcLevel() API??
- Next by Date: Re: strange performance behaviour for memcpy in 64 bit app
- Previous by thread: Re: mutex question
- Next by thread: Re: mutex question
- Index(es):
Relevant Pages
|