Commit 2f7cf291 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Count the number of times a threadpool runs against the upper limit

parent baa0dd7e
......@@ -404,8 +404,13 @@ pool_herder(void *priv)
}
Lck_Lock(&pp->mtx);
if (!pp->dry)
if (!pp->dry) {
(void)Lck_CondWait(&pp->herder_cond, &pp->mtx, NULL);
} else {
/* XXX: unsafe counters */
VSC_C_main->threads_limited++;
pp->dry = 0;
}
Lck_Unlock(&pp->mtx);
}
NEEDLESS_RETURN(NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment