Horje
c++ start thread later Code Example
c++ start thread later
#include <iostream>
#include <thread>

void thread_func(const int i) {
    std::cout << "hello from thread: " << i << std::endl;
}

int main() {
    std::thread t;

    t = std::thread{ thread_func, 7 };
    t.join();
}




Cpp

Related
how to kill Code Example how to kill Code Example
convert c++ to mips assembly  code online Code Example convert c++ to mips assembly code online Code Example
dream speedrun music free download mp3 Code Example dream speedrun music free download mp3 Code Example
what does for do in c++ Code Example what does for do in c++ Code Example
comparing strings in cpp Code Example comparing strings in cpp Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7