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-connectors/jk/native2/common jk_mutex_thread.c
Date Wed, 05 Mar 2003 00:00:52 GMT
costin      2003/03/04 16:00:52

  Modified:    jk/native2/common jk_mutex_thread.c
  Log:
  Set the state.
  
  Revision  Changes    Path
  1.8       +8 -0      jakarta-tomcat-connectors/jk/native2/common/jk_mutex_thread.c
  
  Index: jk_mutex_thread.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_mutex_thread.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- jk_mutex_thread.c	4 Feb 2003 07:39:58 -0000	1.7
  +++ jk_mutex_thread.c	5 Mar 2003 00:00:51 -0000	1.8
  @@ -79,6 +79,7 @@
   static int JK_METHOD jk2_mutex_thread_init(jk_env_t *env, jk_bean_t  *mutexB)
   {
       jk_mutex_t *jkMutex=mutexB->object;
  +    mutexB->state=JK_STATE_INIT;
   
       return apr_thread_mutex_create( &jkMutex->threadMutex,
                                       0,
  @@ -90,6 +91,7 @@
   {
       jk_mutex_t *jkMutex=mutexB->object;
   
  +    mutexB->state=JK_STATE_NEW;
       if( jkMutex==NULL || jkMutex->threadMutex==NULL ) return JK_ERR;
   
       return apr_thread_mutex_destroy( jkMutex->threadMutex);
  @@ -124,6 +126,7 @@
   static int JK_METHOD jk2_mutex_thread_init(jk_env_t *env, jk_bean_t  *mutexB)
   {
       jk_mutex_t *jkMutex=mutexB->object;
  +    mutexB->state=JK_STATE_INIT;
       InitializeCriticalSection( & jkMutex->threadMutex );
       return JK_OK;
   }
  @@ -133,6 +136,7 @@
   {
       jk_mutex_t *jkMutex=mutexB->object;
   
  +    mutexB->state=JK_STATE_NEW;
       if( jkMutex==NULL ) return JK_ERR;
       DeleteCriticalSection( & jkMutex->threadMutex );
       return JK_OK;
  @@ -167,6 +171,7 @@
   static int JK_METHOD jk2_mutex_thread_init(jk_env_t *env, jk_bean_t  *mutexB)
   {
       jk_mutex_t *jkMutex=mutexB->object;
  +    mutexB->state=JK_STATE_INIT;
   
       return pthread_mutex_init( &jkMutex->threadMutex, NULL );
   }
  @@ -175,6 +180,7 @@
   jk2_mutex_thread_destroy(jk_env_t *env, jk_bean_t  *mutexB)
   {
       jk_mutex_t *jkMutex=mutexB->object;
  +    mutexB->state=JK_STATE_NEW;
   
       if( jkMutex==NULL ) return JK_ERR;
       return pthread_mutex_destroy( & jkMutex->threadMutex);
  @@ -204,12 +210,14 @@
   
   static int JK_METHOD jk2_mutex_thread_init(jk_env_t *env, jk_bean_t  *mutexB)
   {
  +    mutexB->state=JK_STATE_INIT;
       return JK_OK;
   }
   
   static int JK_METHOD 
   jk2_mutex_thread_destroy(jk_env_t *env, jk_bean_t  *mutexB)
   {
  +    mutexB->state=JK_STATE_NEW;
       return JK_OK;
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message