Sign in
qemu
/
meson
/
d6a0b7a6ecde30d44fb1960866385d8f5a6e30f3
/
.
/
test cases
/
cmake
/
16 threads
/
subprojects
/
cmMod
/
cmMod.cpp
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
();
}