dont be so aggressive about waking up more jobs, since this just causes excess locking when we dont need it

This commit is contained in:
jrandom
2004-06-20 01:34:16 +00:00
committed by zzz
parent 5669e8f060
commit cdcb81c867

View File

@ -254,9 +254,10 @@ public class JobQueue {
if (rv != null) { if (rv != null) {
// we found one, but there may be more, so wake up enough // we found one, but there may be more, so wake up enough
// other runners // other runners
if (_log.shouldLog(Log.DEBUG))
_log.debug("Waking up " + (ready-1) + " job runners (and running one)"); //if (_log.shouldLog(Log.DEBUG))
awaken(ready-1); // _log.debug("Waking up " + (ready-1) + " job runners (and running one)");
//awaken(ready-1);
return rv; return rv;
} else { } else {
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))