LWN.net Logo

Betrayed by a bitfield

Betrayed by a bitfield

Posted Feb 4, 2012 17:47 UTC (Sat) by daglwn (subscriber, #65432)
In reply to: Betrayed by a bitfield by dlang
Parent article: Betrayed by a bitfield

That's not what volatile says. There is nothing in the entire C execution model that even considers multiple threads. That's why we have other standards like MPI and OpenMP.

If you need to protect data like this you must make use of constructs outside the C standard.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds