You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2006/02/13 12:47:58 UTC

svn commit: r377356 - /webservices/axis2/trunk/c/include/axis2_thread.h

Author: damitha
Date: Mon Feb 13 03:47:56 2006
New Revision: 377356

URL: http://svn.apache.org/viewcvs?rev=377356&view=rev
Log:
moved axis2_thread_mutex moved to axis2_thread.h

Modified:
    webservices/axis2/trunk/c/include/axis2_thread.h

Modified: webservices/axis2/trunk/c/include/axis2_thread.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_thread.h?rev=377356&r1=377355&r2=377356&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_thread.h (original)
+++ webservices/axis2/trunk/c/include/axis2_thread.h Mon Feb 13 03:47:56 2006
@@ -160,6 +160,9 @@
 typedef struct axis2_thread_mutex_t axis2_thread_mutex_t;
 
 #define AXIS2_THREAD_MUTEX_DEFAULT  0x0   /**< platform-optimal lock behavior */
+#define AXIS2_THREAD_MUTEX_NESTED   0x1   /**< enable nested (recursive) locks */
+#define AXIS2_THREAD_MUTEX_UNNESTED 0x2   /**< disable nested locks */
+
 /**
  * Create and initialize a mutex that can be used to synchronize threads.
  * @param allocator Memory allocator to allocate memory for the mutex
@@ -176,6 +179,14 @@
  */
 AXIS2_DECLARE(axis2_status_t) 
 axis2_thread_mutex_lock(axis2_thread_mutex_t *mutex);
+
+/**
+ * Attempt to acquire the lock for the given mutex. If the mutex has already
+ * been acquired, the call returns immediately 
+ * @param mutex the mutex on which to attempt the lock acquiring.
+ */
+AXIS2_DECLARE(axis2_status_t) 
+axis2_thread_mutex_trylock(axis2_thread_mutex_t *mutex);
 
 /**
  * Release the lock for the given mutex.