Refer to scheduler and processor via lib and not hydra.

This commit is contained in:
Tobias Brunner
2010-09-02 19:04:18 +02:00
parent e18556e9e9
commit bb381e26c6
37 changed files with 79 additions and 103 deletions
+2 -3
View File
@@ -32,7 +32,6 @@
#include "daemon.h"
#include <library.h>
#include <hydra.h>
#include <config/proposal.h>
#include <kernel/kernel_handler.h>
@@ -101,7 +100,7 @@ static void dbg_bus(debug_t group, level_t level, char *fmt, ...)
static void destroy(private_daemon_t *this)
{
/* terminate all idle threads */
hydra->processor->set_threads(hydra->processor, 0);
lib->processor->set_threads(lib->processor, 0);
/* close all IKE_SAs */
if (this->public.ike_sa_manager)
@@ -178,7 +177,7 @@ METHOD(daemon_t, start, void,
private_daemon_t *this)
{
/* start the engine, go multithreaded */
hydra->processor->set_threads(hydra->processor,
lib->processor->set_threads(lib->processor,
lib->settings->get_int(lib->settings, "charon.threads",
DEFAULT_THREADS));
}