#include //code void threadAction(std::mutex &mut, int &sharedInt) { std::lock_guard lg{mut, std::adopt_lock_t()}; // do something with sharedInt } //=