diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-10-03 21:11:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-10-03 21:11:37 +0000 |
commit | 27e828564328ee5270450729bbb6902f6f62ba47 (patch) | |
tree | 1070cd10e6352100d6a8c0aa7edfdf99e61e0e15 /nscd/nscd.h | |
parent | 4401d759051714fcc016a146685f3c13bed49442 (diff) | |
download | glibc-27e828564328ee5270450729bbb6902f6f62ba47.zip glibc-27e828564328ee5270450729bbb6902f6f62ba47.tar.gz glibc-27e828564328ee5270450729bbb6902f6f62ba47.tar.bz2 |
Update.
Dynamically create new threads if necessary.
* nscd/connections.c (fd_ready): If no thread available for processing
the request, create a new one unless the limit is reached.
(start_threads): Check errors from pthread_create.
* nscd/nscd.h: Declare max_nthreads.
* nscd/nscd_conf.c: Parse max-nthreads entry.
* nscd/nscd.conf: Add max-threads entry.
* nscd/nscd_stat.c: Print current and maximum number of threads.
Diffstat (limited to 'nscd/nscd.h')
-rw-r--r-- | nscd/nscd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nscd/nscd.h b/nscd/nscd.h index 56073eb..4e00f69 100644 --- a/nscd/nscd.h +++ b/nscd/nscd.h @@ -102,8 +102,10 @@ extern const struct iovec grp_iov_disabled; extern const struct iovec hst_iov_disabled; -/* Number of threads to run. */ +/* Initial number of threads to run. */ extern int nthreads; +/* Maximum number of threads to use. */ +extern int max_nthreads; /* Tables for which we cache data with uid. */ extern int secure_in_use; /* Is one of the above 1? */ |