diff options
author | Martin Willi <martin@revosec.ch> | 2011-05-05 10:51:11 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-05-16 15:24:15 +0200 |
commit | 14bf2f689d1bd3fa42a63470d9a7ae6ea73a7ca6 (patch) | |
tree | 763fd1f1a303e72ab441b8681c596674008c7cc3 /src/libstrongswan | |
parent | 1c8f58adb9172534c2862a4de435acb7c7884931 (diff) | |
download | strongswan-14bf2f689d1bd3fa42a63470d9a7ae6ea73a7ca6.tar.bz2 strongswan-14bf2f689d1bd3fa42a63470d9a7ae6ea73a7ca6.tar.xz |
Use CRITICAL job priority class for long running dispatcher jobs
Diffstat (limited to 'src/libstrongswan')
-rw-r--r-- | src/libstrongswan/plugins/pkcs11/pkcs11_manager.c | 4 | ||||
-rw-r--r-- | src/libstrongswan/processing/scheduler.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c b/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c index 431cd6a2c..1d6237e29 100644 --- a/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c +++ b/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c @@ -392,8 +392,8 @@ pkcs11_manager_t *pkcs11_manager_create(pkcs11_manager_token_event_t cb, while (enumerator->enumerate(enumerator, &entry)) { query_slots(entry); - entry->job = callback_job_create((void*)dispatch_slot_events, - entry, (void*)end_dispatch, NULL); + entry->job = callback_job_create_with_prio((void*)dispatch_slot_events, + entry, (void*)end_dispatch, NULL, JOB_PRIO_CRITICAL); lib->processor->queue_job(lib->processor, (job_t*)entry->job); } enumerator->destroy(enumerator); diff --git a/src/libstrongswan/processing/scheduler.c b/src/libstrongswan/processing/scheduler.c index 7d9bcd70f..f3cc1164a 100644 --- a/src/libstrongswan/processing/scheduler.c +++ b/src/libstrongswan/processing/scheduler.c @@ -341,7 +341,8 @@ scheduler_t * scheduler_create() this->heap = (event_t**)calloc(this->heap_size + 1, sizeof(event_t*)); - this->job = callback_job_create((callback_job_cb_t)schedule, this, NULL, NULL); + this->job = callback_job_create_with_prio((callback_job_cb_t)schedule, + this, NULL, NULL, JOB_PRIO_CRITICAL); lib->processor->queue_job(lib->processor, (job_t*)this->job); return &this->public; |