The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
233 B

#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();
}