Wednesday, January 22, 2014

FeedaMail: Comments for Sutter̢۪s Mill

feedamail.com Comments for Sutter's Mill

Comment on GotW #95 Solution: Thread Safety and Synchronization by Bartosz Milewski

@xingzou: It’s very unfortunate that Java and C++ gave the word volatile completely different meanings. In Java, volatile would indeed protect you from a race, in C++ it would do no such thing. Think of Java volatile == C++ atomic. Think of C++ volatile as a way of accessing memory mapped IO.

Read More »
 
Delievered to you by Feedamail.
Unsubscribe