[Pianod] wsgw hanging on RasPi; deadlock?
Peter Li
chinasaurli at gmail.com
Mon Feb 25 15:29:58 PST 2013
Right, because you want to shut the whole thing down when either thread
finishes, not wait for both. And I suppose a mutex is more efficient
than simply putting completion flags on each thread and then waiting for
them?
On 02/25/2013 03:20 PM, Perette Barella wrote:
> Nice catches on the subtle bugs.
>
> The reason for the goofy mutexes instead of pthread_join is so when
> one direction closes, the other isn't left hanging. I'll comment
> that. There should be a pthread_joins after the thread cancellations,
> though, I'll add that and make a release.
>
> Perette
More information about the Pianod
mailing list