X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fthreads.c;fp=citadel%2Fthreads.c;h=5cb70334c0b9fc13703045236de963ac55c899de;hp=228a5b0aa6f85b6e7f908481f6fe6ffe862b3daf;hb=7c94d5bb68f1c448770d31205ec5ae12bd8a02ed;hpb=c8c89455faeb5a76d6ee2264f497b8f790e0e392 diff --git a/citadel/threads.c b/citadel/threads.c index 228a5b0aa..5cb70334c 100644 --- a/citadel/threads.c +++ b/citadel/threads.c @@ -1,7 +1,7 @@ /* * Thread handling stuff for Citadel server * - * Copyright (c) 1987-2011 by the citadel.org team + * Copyright (c) 1987-2015 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 3. @@ -19,6 +19,7 @@ #include "modules_init.h" #include "serv_extensions.h" #include "ctdl_module.h" +#include "config.h" #include "context.h" #include "threads.h" @@ -171,7 +172,7 @@ void go_threading(void) * they are all in use. */ while (!server_shutting_down) { - if ((active_workers == num_workers) && (num_workers < config.c_max_workers)) { + if ((active_workers == num_workers) && (num_workers < CtdlGetConfigInt("c_max_workers"))) { CtdlThreadCreate(worker_thread); } usleep(1000000);