multithreading: easiest way to modify shared objectThank you both very much! I will use std::atomic.
multithreading: easiest way to modify shared object[code]class MyOwner { ... int m_count; bool b_locked; }; class MyObject { ... ...