Refer to scheduler and processor via lib and not hydra.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user