diff options
Diffstat (limited to 'src/charon/threads/thread_pool.h')
-rw-r--r-- | src/charon/threads/thread_pool.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/charon/threads/thread_pool.h b/src/charon/threads/thread_pool.h index c27d0e0b3..e4a04e8cb 100644 --- a/src/charon/threads/thread_pool.h +++ b/src/charon/threads/thread_pool.h @@ -45,13 +45,22 @@ typedef struct thread_pool_t thread_pool_t; * @ingroup threads */ struct thread_pool_t { + /** * @brief Return currently instanciated thread count. - * + * * @param thread_pool calling object * @return size of thread pool */ - size_t (*get_pool_size) (thread_pool_t *thread_pool); + u_int (*get_pool_size) (thread_pool_t *thread_pool); + + /** + * @brief Get the number of threads currently waiting for work. + * + * @param thread_pool calling object + * @return number of idle threads + */ + u_int (*get_idle_threads) (thread_pool_t *thread_pool); /** * @brief Destroy a thread_pool_t object. |