#include <thread>
#include <iostream>
using std::thread,
std::cerr;
int main(){
auto thread1 = [](int n){
cerr << "from inside thread: " << n << "\n";
};
thread a(thread1, 20);
thread::native_handle_type nht = a.native_handle();
cerr << "a's native_handle_type: " << nht << "\n";
a.join();
return 0;
}
C++ Examples© 2024 TBD