You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2002/06/06 03:24:37 UTC
cvs commit: jakarta-tomcat/src/native/mod_jk/common jk_mt.h
costin 2002/06/05 18:24:37
Modified: src/native/mod_jk/common jk_mt.h
Log:
Backport the mt fix.
Revision Changes Path
1.2 +3 -3 jakarta-tomcat/src/native/mod_jk/common/jk_mt.h
Index: jk_mt.h
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/common/jk_mt.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- jk_mt.h 26 Aug 2000 01:21:47 -0000 1.1
+++ jk_mt.h 6 Jun 2002 01:24:37 -0000 1.2
@@ -56,7 +56,7 @@
/***************************************************************************
* Description: Multi thread portability code for JK *
* Author: Gal Shachor <sh...@il.ibm.com> *
- * Version: $Revision: 1.1 $ *
+ * Version: $Revision: 1.2 $ *
***************************************************************************/
#ifndef _JK_MT_H
@@ -96,13 +96,13 @@
if(pthread_mutex_init(x, NULL)) rc = JK_FALSE; else rc = JK_TRUE;
#define JK_DELETE_CS(x, rc)\
- if(pthread_mutex_lock(x)) rc = JK_FALSE; else rc = JK_TRUE;
+ if(pthread_mutex_destroy(x)) rc = JK_FALSE; else rc = JK_TRUE;
#define JK_ENTER_CS(x, rc)\
- if(pthread_mutex_unlock(x)) rc = JK_FALSE; else rc = JK_TRUE;
+ if(pthread_mutex_lock(x)) rc = JK_FALSE; else rc = JK_TRUE;
#define JK_LEAVE_CS(x, rc)\
- if(pthread_mutex_destroy(x)) rc = JK_FALSE; else rc = JK_TRUE;
+ if(pthread_mutex_unlock(x)) rc = JK_FALSE; else rc = JK_TRUE;
#endif /* Unix pthreads */
#else /* Not an MT code */
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>