view all posts by Herb Sutter

Reader Q&A: volatile (again)

Herb Sutter Posted by Herb Sutter | Tue, 16 Oct 2012
see the original posting from Sutter's Mill
Sarmad Asgher asked a variant of a perennial question: I am implementing multi producer single consumer problem. I have shared variables like m_currentRecordsetSize which tells the current size of the buffer. I am using m_currentRecordsetSize in a critical section do i need to declare it as volatile. If youre in C or C++, and the [...]


see the original posting from Sutter's Mill

Back to top