I have a thread inside a class but it requires the thread to be declared static.
And with it being static, it cannot access class member functions.
How can I access the members?
Can I send a this pointer in pthread_create?
And how can I accomplish this?
Sorry. I'm not using boost thread. Is there a pthread example?
Edit: Got it! Passed in the fourth argument (Class*)this
Then just retrieved that value
Last edited on