blob: f971eeba051b1e603a04aa1d8134e9bf85ca92a3 [file] [log] [blame]
#include "cmMod.hpp"
#include <chrono>
#include <thread>
using namespace std::chrono_literals;
void CmMod::asyncIncrement() {
std::thread t1([this]() {
std::this_thread::sleep_for(100ms);
num += 1;
});
t1.join();
}