I have the following class:
class A { private: int starter() { //TO_DO: pthread_create() } void* threadStar
Declare the threadStartRountine() as static:
threadStartRountine()
static
static void* threadStartRoutine( void *pThis );
Otherwise, the type of threadStartRoutine() is:
threadStartRoutine()
void* (A::*)(void*)
which is not the type of function pointer that pthread_create() requires.
pthread_create()