Working with c++ multithreading?
Example:
#include
void func() {
// Some code here
}
int main() {
func();
}
Solution:
#include
void func() {
// Some code here
}
int main() {
std::thread t(func);
t.join();
}