Hi Guys,
How would I go about creating a global thread so I can fire it off in another function?
I have tried this but it won't compile.
call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type
std::thread t1;
int main()
{
t1(functionToThread());
t1.join();
return 0;
}
Any advice on how to do this would be awesome.
Thanks in advance.