Commit d2cb9efe authored by Bob Halley's avatar Bob Halley
Browse files

increase max workers to 100; still a good idea to clamp nworkers

parent 26ebe15d
......@@ -67,7 +67,7 @@ void
main(int argc, char *argv[]) {
unsigned int nworkers;
unsigned int i;
isc_thread_t workers[24];
isc_thread_t workers[100];
char name[100];
void *dupname;
......@@ -75,6 +75,8 @@ main(int argc, char *argv[]) {
nworkers = atoi(argv[1]);
else
nworkers = 2;
if (nworkers > 100)
nworkers = 100;
printf("%d workers\n", nworkers);
INSIST(isc_rwlock_init(&lock, 5, 10) == ISC_R_SUCCESS);
......
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