[Pianod] wsgw hanging on RasPi; deadlock?
Peter Li
chinasaurli at gmail.com
Mon Feb 25 15:47:18 PST 2013
Yes, that's basically the idea, although I think with a semaphore you
can wait without spinning?
Although now that we're on the topic, I'm a bit confused by the mutex
situation in wsgw as I thought the mutex is not supposed to be unlocked
by a different thread than the one who locked it? So maybe semaphore is
more correct?
P
On 02/25/2013 03:39 PM, Perette Barella wrote:
> By completion flags, were you thinking like a bool that either thread could set and the main could watch? That would require the main thread to keep running and monitoring, whereas with the mutex solution, main doesn't have to spin. If this wasn't what you were thinking, I'd be curious for details of your idea. I'm new to pthreads too, so you may be onto something I don't know about.
>
> Perette
More information about the Pianod
mailing list