From d82743b7340faff8f2d981b87bd57fdd5203723f Mon Sep 17 00:00:00 2001 From: PHO Date: Wed, 6 Oct 2010 23:18:31 +0900 Subject: [PATCH] Bindings.APR.Thread.Pool --- Bindings/APR/Thread/Pool.hsc | 47 ++++++++++++++++++++++++++++++++++++ bindings-apr-util.cabal | 1 + 2 files changed, 48 insertions(+) create mode 100644 Bindings/APR/Thread/Pool.hsc diff --git a/Bindings/APR/Thread/Pool.hsc b/Bindings/APR/Thread/Pool.hsc new file mode 100644 index 0000000..885a787 --- /dev/null +++ b/Bindings/APR/Thread/Pool.hsc @@ -0,0 +1,47 @@ +#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 \ No newline at end of file diff --git a/bindings-apr-util.cabal b/bindings-apr-util.cabal index b7d1c24..7595216 100644 --- a/bindings-apr-util.cabal +++ b/bindings-apr-util.cabal @@ -51,6 +51,7 @@ Library Bindings.APR.SDBM Bindings.APR.SHA1 Bindings.APR.StrMatch + Bindings.APR.Thread.Pool Bindings.APR.XLate C-Sources: -- 2.40.0