On Wed, 25 Mar 2009, B. Bogart wrote:
After doing some testing on my gphoto code I realized that the patch would only run for exactly 238 runs. After that pthread_create() refuses to create another thread (returns 11). I even pared down the thread to do nothing but sending out a bang and exiting the thread. (attached) I'm exiting the thread, the thread is not even allocating any memory, why does it stop?
I don't really know that stuff, but do you need to call pthread_join on the dead thread? Or is there any other cleanup that needs to be done after a pthread_exit? (a return from the thread is an implicit pthread_exit)
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec