From: PHO Date: Sat, 21 Aug 2010 05:51:16 +0000 (+0900) Subject: Bindings.APR.Cond X-Git-Tag: RELEASE-0.1~10 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=0b1b39c64d16d52ed28a39defd49a7a3993f608b;p=bindings-apr.git Bindings.APR.Cond --- diff --git a/Bindings/APR/Signal.hsc b/Bindings/APR/Signal.hsc index 22bc231..17a3238 100644 --- a/Bindings/APR/Signal.hsc +++ b/Bindings/APR/Signal.hsc @@ -1,5 +1,5 @@ #include -#include +#include module Bindings.APR.Signal where #strict_import diff --git a/Bindings/APR/Strings.hsc b/Bindings/APR/Strings.hsc index 86bcf04..117e87f 100644 --- a/Bindings/APR/Strings.hsc +++ b/Bindings/APR/Strings.hsc @@ -1,5 +1,5 @@ #include -#include +#include module Bindings.APR.Strings where #strict_import diff --git a/Bindings/APR/Thread/Cond.hsc b/Bindings/APR/Thread/Cond.hsc new file mode 100644 index 0000000..8084f97 --- /dev/null +++ b/Bindings/APR/Thread/Cond.hsc @@ -0,0 +1,24 @@ +#include +#include + +module Bindings.APR.Thread.Cond where +#strict_import +import Bindings.APR.ErrNo +import Bindings.APR.Pools +import Bindings.APR.Thread.Mutex +import Bindings.APR.Time + +#if APR_HAS_THREADS + +# opaque_t apr_thread_cond_t + +# ccall apr_thread_cond_create , Ptr (Ptr ) -> Ptr -> IO +# ccall apr_thread_cond_wait , Ptr -> Ptr -> IO +# ccall apr_thread_cond_timedwait, Ptr -> Ptr -> -> IO +# ccall apr_thread_cond_signal , Ptr -> IO +# ccall apr_thread_cond_broadcast, Ptr -> IO +# ccall apr_thread_cond_destroy , Ptr -> IO + +# ccall apr_thread_cond_pool_get , Ptr -> IO (Ptr ) + +#endif diff --git a/bindings-apr.cabal b/bindings-apr.cabal index 5f0fd8a..2d556d0 100644 --- a/bindings-apr.cabal +++ b/bindings-apr.cabal @@ -57,6 +57,7 @@ Library Bindings.APR.Strings Bindings.APR.Support Bindings.APR.Tables + Bindings.APR.Thread.Cond Bindings.APR.Thread.Mutex Bindings.APR.Thread.Proc Bindings.APR.Thread.RWLock