Hello, I know there are similar threads as this one, but none of them quite answer my question, or perhaps I am unable to comprehend the answer.
However my question is if it's possible to use a thread to run a member function of a class?
Something like this:
class A
{
public:
A() {
sf::Thread Thr(&myFunction);
Thr.Launch();
}
private:
void myFunction()
{
// .... Do some stuff ... //
}
};
Or is there perhaps other solutions?