PThread --> Kopf --> Wand
hallo erstmal :D
Ich habe ein kleines Problem. Ich würde gerne pthread innerhalb einer c++ Klasse einsetzten, was mir aber nicht gelingen will.
Fehler:
Code:
hanf_thread.cpp: In member function ‘void hthread::start_thread(void*)’:
hanf_thread.cpp:6: error: invalid conversion from ‘void*’ to ‘void* (*)(void*)’
hanf_thread.cpp:6: error: initializing argument 3 of ‘int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)’
Wäre nett, wenn mir jemand da helfen könnte(code gibs erst ma nich, weil ich noch gar nicht weiß, wie ich pthread überhaupt benutzen muss) :)
MFG Hanf