axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject [axis-axis2-c-core] 04/08: Added thread condition specific stuff
Date Sat, 04 Apr 2020 15:08:10 GMT
This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch new_thread_pool-25march2009
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit a7dd4456d61f8cffc92f16c997304ad0d49609a7
Author: Damitha N.M. Kumarage <damitha@apache.org>
AuthorDate: Wed Mar 25 06:28:48 2009 +0000

    Added thread condition specific stuff
---
 util/include/axutil_thread.h | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/util/include/axutil_thread.h b/util/include/axutil_thread.h
index d258ce3..479b567 100644
--- a/util/include/axutil_thread.h
+++ b/util/include/axutil_thread.h
@@ -177,6 +177,7 @@ extern "C"
 
     /** Opaque thread-local mutex structure */
     typedef struct axutil_thread_mutex_t axutil_thread_mutex_t;
+    typedef struct axutil_thread_cond_t axutil_thread_cond_t;
 
 #define AXIS2_THREAD_MUTEX_DEFAULT  0x0   /**< platform-optimal lock behavior */
 
@@ -231,6 +232,35 @@ extern "C"
     axutil_thread_mutex_destroy(
         axutil_thread_mutex_t * mutex);
 
+    /**
+     */
+    AXIS2_EXTERN axutil_thread_cond_t *AXIS2_CALL
+    axutil_thread_cond_create(
+        axutil_allocator_t * allocator,
+        unsigned int flags);
+
+    /**
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axutil_thread_cond_wait(
+        axutil_thread_cond_t * cond,
+        axutil_thread_mutex_t * mutex);
+
+    /**
+     *
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axutil_thread_cond_signal(
+        axutil_thread_cond_t * cond);
+
+    /**
+     * Destroy the cond and free the memory associated with the lock.
+     * @param cond the cond to destroy.
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axutil_thread_cond_destroy(
+        axutil_thread_cond_t * cond);
+
     /** @} */
 #ifdef __cplusplus
 }


Mime
View raw message