]> gitweb @ CieloNegro.org - bindings-apr.git/blob - Bindings/APR/Thread/Cond.hsc
8084f9753746bce00990c545319d6afa993a4a85
[bindings-apr.git] / Bindings / APR / Thread / Cond.hsc
1 #include <bindings.dsl.h>
2 #include <apr_thread_cond.h>
3
4 module Bindings.APR.Thread.Cond where
5 #strict_import
6 import Bindings.APR.ErrNo
7 import Bindings.APR.Pools
8 import Bindings.APR.Thread.Mutex
9 import Bindings.APR.Time
10
11 #if APR_HAS_THREADS
12
13 #  opaque_t apr_thread_cond_t
14
15 #  ccall apr_thread_cond_create   , Ptr (Ptr <apr_thread_cond_t>) -> Ptr <apr_pool_t> -> IO <apr_status_t>
16 #  ccall apr_thread_cond_wait     , Ptr <apr_thread_cond_t> -> Ptr <apr_thread_mutex_t> -> IO <apr_status_t>
17 #  ccall apr_thread_cond_timedwait, Ptr <apr_thread_cond_t> -> Ptr <apr_thread_mutex_t> -> <apr_interval_time_t> -> IO <apr_status_t>
18 #  ccall apr_thread_cond_signal   , Ptr <apr_thread_cond_t> -> IO <apr_status_t>
19 #  ccall apr_thread_cond_broadcast, Ptr <apr_thread_cond_t> -> IO <apr_status_t>
20 #  ccall apr_thread_cond_destroy  , Ptr <apr_thread_cond_t> -> IO <apr_status_t>
21
22 #  ccall apr_thread_cond_pool_get , Ptr <apr_thread_cond_t> -> IO (Ptr <apr_pool_t>)
23
24 #endif