cannot convert '*void(MyClass::*)(void*) to void*(*)(void*) in pthread_create function
问题 i'm trying to create a new thread with a class "CameraManager" but i have the following error: cannot convert '*void(CameraManager:: * )(void*) to void*( * )(void*) in pthread_create function i defined in the cameramanager.h file: public: void *dequeueLoop(void *ptr); and in the cameramanager.cpp void CameraManager::startDequeuing(){ dequeuing = true; dequeueThreadId = pthread_create(&dequeueThread, NULL, &CameraManager::dequeueLoop, NULL); } void *CameraManager::dequeueLoop(void *ptr){ while