class myFunc
{
public:
void pubFunc1()
{
cout << "publicFunc1 of myFunc class called" << endl;
}
};
/*****************************************************/
myFunc myFunc1;
thread thread1(&myFunc::pubFunc1,myFunc);
if (thread1.joinable())
{
thread1.join();
}