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
@@ -19,7 +19,6 @@
#include "scheduler.h"
#include <hydra.h>
#include <debug.h>
#include <processing/processor.h>
#include <processing/jobs/callback_job.h>
@@ -200,7 +199,7 @@ static job_requeue_t schedule(private_scheduler_t * this)
remove_event(this);
this->mutex->unlock(this->mutex);
DBG2(DBG_JOB, "got event, queuing job for execution");
hydra->processor->queue_job(hydra->processor, event->job);
lib->processor->queue_job(lib->processor, event->job);
free(event);
return JOB_REQUEUE_DIRECT;
}
@@ -352,7 +351,7 @@ scheduler_t * scheduler_create()
this->condvar = condvar_create(CONDVAR_TYPE_DEFAULT);
this->job = callback_job_create((callback_job_cb_t)schedule, this, NULL, NULL);
hydra->processor->queue_job(hydra->processor, (job_t*)this->job);
lib->processor->queue_job(lib->processor, (job_t*)this->job);
return &this->public;
}