Friday, September 10, 2010

Volatile

If you share a variable with multiple threads, you should specify that variable as volatile.

Reference: Modern C++ Design: Generic Programming and Design Patterns Applied by Andrei Alexandrescu. Addison-Wesley, 2001. p. 308.

No comments:

Post a Comment