]> gitweb @ CieloNegro.org - bindings-apr.git/commitdiff
Bindings.APR.Cond
authorPHO <pho@cielonegro.org>
Sat, 21 Aug 2010 05:51:16 +0000 (14:51 +0900)
committerPHO <pho@cielonegro.org>
Sat, 21 Aug 2010 05:51:16 +0000 (14:51 +0900)
Bindings/APR/Signal.hsc
Bindings/APR/Strings.hsc
Bindings/APR/Thread/Cond.hsc [new file with mode: 0644]
bindings-apr.cabal

index 22bc2316dae27ac6c28d38717a3879c11421686d..17a3238b9d35874ec148de5b33f7021c451175fd 100644 (file)
@@ -1,5 +1,5 @@
 #include <bindings.dsl.h>
-#include <apr_shm.h>
+#include <apr_signal.h>
 
 module Bindings.APR.Signal where
 #strict_import
index 86bcf04f9ed88a5ce05c50fa9912be3a6427c849..117e87fcbd6a2a50100ed4a21b9ff55b9f393d65 100644 (file)
@@ -1,5 +1,5 @@
 #include <bindings.dsl.h>
-#include <apr_shm.h>
+#include <apr_strings.h>
 
 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 (file)
index 0000000..8084f97
--- /dev/null
@@ -0,0 +1,24 @@
+#include <bindings.dsl.h>
+#include <apr_thread_cond.h>
+
+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 <apr_thread_cond_t>) -> Ptr <apr_pool_t> -> IO <apr_status_t>
+#  ccall apr_thread_cond_wait     , Ptr <apr_thread_cond_t> -> Ptr <apr_thread_mutex_t> -> IO <apr_status_t>
+#  ccall apr_thread_cond_timedwait, Ptr <apr_thread_cond_t> -> Ptr <apr_thread_mutex_t> -> <apr_interval_time_t> -> IO <apr_status_t>
+#  ccall apr_thread_cond_signal   , Ptr <apr_thread_cond_t> -> IO <apr_status_t>
+#  ccall apr_thread_cond_broadcast, Ptr <apr_thread_cond_t> -> IO <apr_status_t>
+#  ccall apr_thread_cond_destroy  , Ptr <apr_thread_cond_t> -> IO <apr_status_t>
+
+#  ccall apr_thread_cond_pool_get , Ptr <apr_thread_cond_t> -> IO (Ptr <apr_pool_t>)
+
+#endif
index 5f0fd8ad2ffc911fed54f5fe4727cbc4ec50b826..2d556d0a0e4f97e2bb36ca1b47d6786710e16c1f 100644 (file)
@@ -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