- fixed thread pool removal
authorMartin Willi <martin@strongswan.org>
Wed, 7 Dec 2005 16:04:50 +0000 (16:04 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 7 Dec 2005 16:04:50 +0000 (16:04 -0000)
Source/charon/daemon.c
Source/charon/daemon.h

index a80e043..2d23b58 100644 (file)
@@ -182,7 +182,6 @@ static void initialize(private_daemon_t *this)
        this->public.sender = sender_create();
        this->public.receiver = receiver_create();
        this->public.scheduler = scheduler_create();
-       this->public.prime_pool = prime_pool_create(PRIME_PRE_COMPUTATION_LIMIT);
        this->public.thread_pool = thread_pool_create(NUMBER_OF_WORKING_THREADS);       
 }
 
@@ -207,10 +206,6 @@ static void destroy(private_daemon_t *this)
        {
                this->public.thread_pool->destroy(this->public.thread_pool);    
        }
-       if (this->public.prime_pool != NULL)
-       {
-               this->public.prime_pool->destroy(this->public.prime_pool);      
-       }
        if (this->public.job_queue != NULL)
        {
                this->public.job_queue->destroy(this->public.job_queue);
index d97e9b2..cbe1ab0 100644 (file)
@@ -26,7 +26,6 @@
 #include <threads/sender.h>
 #include <threads/receiver.h>
 #include <threads/scheduler.h>
-#include <threads/prime_pool.h>
 #include <threads/thread_pool.h>
 #include <network/socket.h>
 #include <sa/ike_sa_manager.h>
@@ -152,11 +151,6 @@ struct daemon_t {
        thread_pool_t *thread_pool;
        
        /**
-        * Low-priority thread which generates primes.
-        */
-       prime_pool_t *prime_pool;
-       
-       /**
         * @brief Shut down the daemon.
         * 
         * @param this          the daemon to kill