tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/native/mod_jk/common jk_mt.h
Date Thu, 06 Jun 2002 01:24:37 GMT
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 <shachor@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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message