Check for an available slave early on
authorMarco Costalba <mcostalba@gmail.com>
Sun, 8 Jun 2014 19:56:31 +0000 (04:56 +0900)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 8 Jun 2014 19:56:31 +0000 (04:56 +0900)
commitce1c260ea97c14eea996d0a2638f4876ccbc412b
tree3ccfd8740339c91a2973597f1f86dc4ec68cb8ad
parent4d30126e4b0a64c517fb52ec4c24afdc2645663b
Check for an available slave early on

Don't take the split lock if we don't have
available slaves (about 30-40% of times).

This new condition allows to retire the now
redundant one on number of threads.

No functional change.
src/search.cpp