3 ms·
Yep, even though it really shouldn't be. Volatile has... problems. It was meant more for mem-mapped IO than thread safety. And it's too powerful at the same t
by TheLoneWolfling 12y ago
Yep, even though it really shouldn't be.
Volatile has... problems. It was meant more for mem-mapped IO than thread safety.
And it's too powerful at the same time, as in there are a number of optimizations that are safe in the typical use cases of volatile that cannot be done to volatile variables.