Commit 37fa7d36d433f94833c6006b8447f18ec0f2b1c6

Con Kolivas 2012-08-24T00:35:26

Move the decision to queue further work upstream before threads are spawned based on fine grained per-pool stats and increment the queued count immediately.