change the structure a bit

This commit is contained in:
2022-09-28 19:53:31 +02:00
parent fe8e9715ac
commit dd62bfc010
8 changed files with 7 additions and 13 deletions

View File

@ -0,0 +1,17 @@
#include <iostream>
#include <thread>
using namespace std;
void mySimpleTask() {
using namespace std::chrono_literals;
while(true) {
cout << "Hello World" << endl;
this_thread::sleep_for(1000ms);
}
}
int main() {
std::thread thread(mySimpleTask);
thread.join();
}