diff options
author | Martin Willi <martin@revosec.ch> | 2011-05-04 15:32:31 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-05-16 15:24:14 +0200 |
commit | 877fdcf0b89a9eb242f5eb8a0615e449154e6765 (patch) | |
tree | fafaf0d96bcb83ea5f64c24f047b7a2178d2a38a /src/libstrongswan/processing/processor.h | |
parent | a694b481eed8ffbbbfde899dfdee54a394ec49d8 (diff) | |
download | strongswan-877fdcf0b89a9eb242f5eb8a0615e449154e6765.tar.bz2 strongswan-877fdcf0b89a9eb242f5eb8a0615e449154e6765.tar.xz |
Count number of threads active in each class, and reserve threads only if none active
Diffstat (limited to 'src/libstrongswan/processing/processor.h')
-rw-r--r-- | src/libstrongswan/processing/processor.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libstrongswan/processing/processor.h b/src/libstrongswan/processing/processor.h index 9b722b5dc..5db42c04c 100644 --- a/src/libstrongswan/processing/processor.h +++ b/src/libstrongswan/processing/processor.h @@ -42,13 +42,21 @@ struct processor_t { u_int (*get_total_threads) (processor_t *this); /** - * Get the number of threads currently waiting. + * Get the number of threads currently waiting for work. * * @return number of idle threads */ u_int (*get_idle_threads) (processor_t *this); /** + * Get the number of threads currently working, per priority class. + * + * @param prioritiy to check + * @return number of threads in priority working + */ + u_int (*get_working_threads)(processor_t *this, job_priority_t prio); + + /** * Get the number of queued jobs for a specified priority. * * @param prio priority class to get job load for |