Re: volatile shared memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Thu, 15 Mar 2012, NightStrike wrote:

For simple things like this, and much more complicated things beyond
it, is there a way to cast something to "volatile" for one particular

Ian's answer is the right one. For this particular subquestion, yes, it is possible, just do a cast at the pointer level and access the object through that int volatile*.

Marc Glisse

[Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

Add to Google