You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2009/03/25 07:28:49 UTC
svn commit: r758159 -
/webservices/axis2/branches/c/new_thread_pool-25march2009/util/include/axutil_thread.h
Author: damitha
Date: Wed Mar 25 06:28:48 2009
New Revision: 758159
URL: http://svn.apache.org/viewvc?rev=758159&view=rev
Log:
Added thread condition specific stuff
Modified:
webservices/axis2/branches/c/new_thread_pool-25march2009/util/include/axutil_thread.h
Modified: webservices/axis2/branches/c/new_thread_pool-25march2009/util/include/axutil_thread.h
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/c/new_thread_pool-25march2009/util/include/axutil_thread.h?rev=758159&r1=758158&r2=758159&view=diff
==============================================================================
--- webservices/axis2/branches/c/new_thread_pool-25march2009/util/include/axutil_thread.h (original)
+++ webservices/axis2/branches/c/new_thread_pool-25march2009/util/include/axutil_thread.h Wed Mar 25 06:28:48 2009
@@ -177,6 +177,7 @@
/** 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 @@
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
}