From: PHO Date: Wed, 6 Oct 2010 14:18:31 +0000 (+0900) Subject: Bindings.APR.Thread.Pool X-Git-Tag: RELEASE-0.1~3 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=d82743b7340faff8f2d981b87bd57fdd5203723f;p=bindings-apr-util.git Bindings.APR.Thread.Pool --- 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: