These can't get negative.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
/*
* maximum number of threads
*/
- int max_threads;
+ unsigned max_threads;
/*
* Number of threads
*/
- int num_threads;
+ unsigned num_threads;
/*
* Number of idle threads
*/
- int num_idle;
+ unsigned num_idle;
/*
* Condition variable indicating that helper threads should
assert(ret == 0);
while (pool->num_idle != 0) {
- int num_idle = pool->num_idle;
+ unsigned num_idle = pool->num_idle;
pthread_cond_t prefork_cond;
ret = pthread_cond_init(&prefork_cond, NULL);