Non-static member variables have an implicit this parameter, passed by the compiler internally.
You have
ClassInQuestion { void threadFunc( int ); }
and the compiler internally creates a function
void ClassInQuestion_threadFunc( ClassInQuestion* thisObject, int );
Therefore, if the thread procedure does not accept the pointer t, a function that has a first parameter of type ClassInQuestion* will not match the expected signature of the function.
sharptooth
source share