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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment