renaming
This commit is contained in:
17
ws-tasks/tasks-solutions/main-01.cpp
Normal file
17
ws-tasks/tasks-solutions/main-01.cpp
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user