X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=bindings-apr-util.git;a=blobdiff_plain;f=Bindings%2FAPR%2FThread%2FPool.hsc;fp=Bindings%2FAPR%2FThread%2FPool.hsc;h=885a7875ed875df3a60efbe9b58b0f9c54ba728c;hp=0000000000000000000000000000000000000000;hb=d82743b7340faff8f2d981b87bd57fdd5203723f;hpb=1e8b54a97523c909abf2c33da6ed5ee5bb626c0b 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