From: "Christopher Friesen" <cfriesen@nortel.com>
To: Vadim Lobanov <vlobanov@speakeasy.net>
Cc: linux-kernel@vger.kernel.org, tom.anderl@gmail.com
Subject: Re: [OT] volatile keyword
Date: Thu, 25 Aug 2005 15:26:56 -0600 [thread overview]
Message-ID: <430E37A0.1000304@nortel.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0508251414350.19866@shell2.speakeasy.net>
Vadim Lobanov wrote:
> I figured it was something along these lines. In that case, is the
> following code (from kernel/posix-timers.c) really doing the right
> thing?
>
> do
> expires = timr->it_timer.expires;
> while ((volatile long) (timr->it_timer.expires) != expires);
>
> Seems it's casting the value, not the pointer.
Someone else will have to give the definitive answer, but it looks
suspicious to me...
Chris
next prev parent reply other threads:[~2005-08-25 21:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-25 20:44 [OT] volatile keyword Vadim Lobanov
2005-08-25 20:57 ` Christopher Friesen
2005-08-25 21:16 ` Vadim Lobanov
2005-08-25 21:26 ` Christopher Friesen [this message]
2005-08-26 15:39 ` Alan Cox
2005-08-26 7:20 ` Paolo Ornati
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=430E37A0.1000304@nortel.com \
--to=cfriesen@nortel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tom.anderl@gmail.com \
--cc=vlobanov@speakeasy.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.