* SF Tracker FR [ 1570020 ].
* Enable both device and control point in the same application. Resolve deadlock in the SSDP processing threads. * Fix Threadpool expansion condition. Thanks to Siva Chandran P. for the original patch. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@194 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
@@ -674,7 +674,7 @@ tp->stats.totalJobsLQ++; tp->stats.totalTimeLQ += diff; break; default:
|
||||
threads = tp->totalThreads - tp->persistentThreads;
|
||||
|
||||
while( ( threads == 0 )
|
||||
|| ( ( jobs / threads ) > tp->attr.jobsPerThread ) ) {
|
||||
|| ( ( jobs / threads ) >= tp->attr.jobsPerThread ) ) {
|
||||
|
||||
if( CreateWorker( tp ) != 0 )
|
||||
return;
|
||||
|
Reference in New Issue
Block a user