Introduce priority classes for jobs

This commit is contained in:
Martin Willi
2011-05-16 15:24:12 +02:00
parent dfe9bad981
commit f77203bbfb
18 changed files with 147 additions and 3 deletions
@@ -60,6 +60,12 @@ METHOD(job_t, execute, void,
destroy(this);
}
METHOD(job_t, get_priority, job_priority_t,
private_send_keepalive_job_t *this)
{
return JOB_PRIO_MEDIUM;
}
/*
* Described in header
*/
@@ -71,6 +77,7 @@ send_keepalive_job_t *send_keepalive_job_create(ike_sa_id_t *ike_sa_id)
.public = {
.job_interface = {
.execute = _execute,
.get_priority = _get_priority,
.destroy = _destroy,
},
},