#include #include module Bindings.APR.Thread.Pool where #strict_import import Bindings.APR import Bindings.APR.ErrNo import Bindings.APR.Pools import Bindings.APR.Thread.Proc import Bindings.APR.Time #if APR_HAS_THREADS # opaque_t apr_thread_pool_t # num APR_THREAD_TASK_PRIORITY_LOWEST # num APR_THREAD_TASK_PRIORITY_LOW # num APR_THREAD_TASK_PRIORITY_NORMAL # num APR_THREAD_TASK_PRIORITY_HIGH # num APR_THREAD_TASK_PRIORITY_HIGHEST # ccall apr_thread_pool_create , Ptr (Ptr ) -> -> -> Ptr -> IO # ccall apr_thread_pool_destroy , Ptr -> IO # ccall apr_thread_pool_push , Ptr -> -> Ptr () -> -> Ptr () -> IO # ccall apr_thread_pool_schedule , Ptr -> -> Ptr () -> -> Ptr () -> IO # ccall apr_thread_pool_top , Ptr -> -> Ptr () -> -> Ptr () -> IO # ccall apr_thread_pool_tasks_cancel, Ptr -> Ptr () -> IO # ccall apr_thread_pool_tasks_count , Ptr -> IO # ccall apr_thread_pool_scheduled_tasks_count, Ptr -> IO # ccall apr_thread_pool_threads_count , Ptr -> IO # ccall apr_thread_pool_busy_count , Ptr -> IO # ccall apr_thread_pool_idle_count , Ptr -> IO # ccall apr_thread_pool_idle_max_set , Ptr -> -> IO # ccall apr_thread_pool_tasks_run_count , Ptr -> IO # ccall apr_thread_pool_tasks_high_count , Ptr -> IO # ccall apr_thread_pool_threads_high_count , Ptr -> IO # ccall apr_thread_pool_threads_idle_timeout_count, Ptr -> IO # ccall apr_thread_pool_idle_max_get , Ptr -> IO # ccall apr_thread_pool_thread_max_set, Ptr -> -> IO # ccall apr_thread_pool_idle_wait_set , Ptr -> -> IO # ccall apr_thread_pool_idle_wait_get , Ptr -> IO # ccall apr_thread_pool_thread_max_get, Ptr -> IO # ccall apr_thread_pool_threshold_set , Ptr -> -> IO # ccall apr_thread_pool_threshold_get , Ptr -> IO # ccall apr_thread_pool_task_owner_get, Ptr -> Ptr (Ptr ()) -> IO #endif