[mythtv] [BUG?] Endless waiting for thread...

Anduin Withers awithers at anduin.com
Wed Mar 9 17:38:36 UTC 2005


> In looking at this code further, if the threadPool is empty when
> entering this function, won't it endlessly loop because prt is never set
> to anything other than null?

The idea is that a thread will return to the pool, which is often right.
However there is a somewhat longstanding issue where the thread pool is
exhausted and threads aren't being returned. I'm pretty sure this is caused
by the main event loop not running (and being able to notice that a socket
has closed in the select rather than an attempted read).

The problem is that you don't generally hit this bug unless you're playing
around.

-- 
Anduin Withers



More information about the mythtv-dev mailing list