[PD-dev] threads stop executing after 238 executions??

B. Bogart ben at ekran.org
Thu Mar 26 17:47:47 CET 2009


Well,

I dropped out all the PD and gphoto code.

Low and behold, plain C bails after exactly 238 thread executions.

So I'm doing something wrong in the pthread stuff.

Onto more general sources of info.

.b.

Mathieu Bouchard wrote:
> 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




More information about the Pd-dev mailing list