I have the following:
class DThread { virtual void run()=0; _beginthreadex(NULL,0,tfunc,this,0,&m_UIThreadID);
The start function is implemented in a derived class.
Why is a function called in a thread called with the cast this pointer? Is this a good practice?
Could this be called directly?
The actual function to be performed is in the derived class.
My question
source share