Diff for /include/ldap_pvt_thread.h between versions 1.47 and 1.48

version 1.47, 2005/08/23 02:12:57 version 1.48, 2005/09/17 21:28:08
Line 1 Line 1
 /* ldap_pvt_thread.h - ldap threads header file */  /* ldap_pvt_thread.h - ldap threads header file */
 /* $OpenLDAP: pkg/ldap/include/ldap_pvt_thread.h,v 1.46 2005/08/23 01:25:21 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/include/ldap_pvt_thread.h,v 1.47 2005/08/23 02:12:57 hyc Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *    * 
  * Copyright 1998-2005 The OpenLDAP Foundation.   * Copyright 1998-2005 The OpenLDAP Foundation.
Line 15 Line 15
  */   */
   
 #ifndef _LDAP_PVT_THREAD_H  #ifndef _LDAP_PVT_THREAD_H
 #define _LDAP_PVT_THREAD_H  #define _LDAP_PVT_THREAD_H /* libldap_r/ldap_thr_debug.h #undefines this */
   
 #include "ldap_cdefs.h"  #include "ldap_cdefs.h"
 #include "ldap_int_thread.h"  #include "ldap_int_thread.h"
   
 LDAP_BEGIN_DECL  LDAP_BEGIN_DECL
   
 typedef ldap_int_thread_t ldap_pvt_thread_t;  #ifndef LDAP_PVT_THREAD_H_DONE
 typedef ldap_int_thread_mutex_t ldap_pvt_thread_mutex_t;  typedef ldap_int_thread_t                       ldap_pvt_thread_t;
 typedef ldap_int_thread_cond_t ldap_pvt_thread_cond_t;  #ifdef LDAP_THREAD_DEBUG_WRAP
   typedef ldap_debug_thread_mutex_t       ldap_pvt_thread_mutex_t;
   typedef ldap_debug_thread_cond_t        ldap_pvt_thread_cond_t;
   typedef ldap_debug_thread_rdwr_t        ldap_pvt_thread_rdwr_t;
   #else
   typedef ldap_int_thread_mutex_t         ldap_pvt_thread_mutex_t;
   typedef ldap_int_thread_cond_t          ldap_pvt_thread_cond_t;
   typedef ldap_int_thread_rdwr_t          ldap_pvt_thread_rdwr_t;
   #endif
   #endif /* !LDAP_PVT_THREAD_H_DONE */
   
   #define ldap_pvt_thread_equal           ldap_int_thread_equal
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_initialize LDAP_P(( void ));  ldap_pvt_thread_initialize LDAP_P(( void ));
Line 44  ldap_pvt_thread_set_concurrency LDAP_P(( Line 55  ldap_pvt_thread_set_concurrency LDAP_P((
 #define LDAP_PVT_THREAD_CREATE_JOINABLE 0  #define LDAP_PVT_THREAD_CREATE_JOINABLE 0
 #define LDAP_PVT_THREAD_CREATE_DETACHED 1  #define LDAP_PVT_THREAD_CREATE_DETACHED 1
   
   #ifndef LDAP_PVT_THREAD_H_DONE
 #define LDAP_PVT_THREAD_SET_STACK_SIZE  #define LDAP_PVT_THREAD_SET_STACK_SIZE
 #ifndef LDAP_PVT_THREAD_STACK_SIZE  #ifndef LDAP_PVT_THREAD_STACK_SIZE
         /* LARGE stack. Will be twice as large on 64 bit machine. */          /* LARGE stack. Will be twice as large on 64 bit machine. */
Line 52  ldap_pvt_thread_set_concurrency LDAP_P(( Line 64  ldap_pvt_thread_set_concurrency LDAP_P((
 #elif LDAP_PVT_THREAD_STACK_SIZE == 0  #elif LDAP_PVT_THREAD_STACK_SIZE == 0
 #undef LDAP_PVT_THREAD_SET_STACK_SIZE  #undef LDAP_PVT_THREAD_SET_STACK_SIZE
 #endif  #endif
   #endif /* !LDAP_PVT_THREAD_H_DONE */
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_create LDAP_P((  ldap_pvt_thread_create LDAP_P((
Line 107  ldap_pvt_thread_mutex_unlock LDAP_P(( ld Line 120  ldap_pvt_thread_mutex_unlock LDAP_P(( ld
 LDAP_F( ldap_pvt_thread_t )  LDAP_F( ldap_pvt_thread_t )
 ldap_pvt_thread_self LDAP_P(( void ));  ldap_pvt_thread_self LDAP_P(( void ));
   
 #ifndef LDAP_THREAD_HAVE_RDWR  
 typedef struct ldap_int_thread_rdwr_s * ldap_pvt_thread_rdwr_t;  
 #endif  
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_rdwr_init LDAP_P((ldap_pvt_thread_rdwr_t *rdwrp));  ldap_pvt_thread_rdwr_init LDAP_P((ldap_pvt_thread_rdwr_t *rdwrp));
   
Line 149  ldap_pvt_thread_rdwr_active LDAP_P((ldap Line 158  ldap_pvt_thread_rdwr_active LDAP_P((ldap
 #define LDAP_PVT_THREAD_EINVAL EINVAL  #define LDAP_PVT_THREAD_EINVAL EINVAL
 #define LDAP_PVT_THREAD_EBUSY EINVAL  #define LDAP_PVT_THREAD_EBUSY EINVAL
   
   #ifndef LDAP_PVT_THREAD_H_DONE
 typedef ldap_int_thread_pool_t ldap_pvt_thread_pool_t;  typedef ldap_int_thread_pool_t ldap_pvt_thread_pool_t;
   
 typedef void * (ldap_pvt_thread_start_t) LDAP_P((void *ctx, void *arg));  typedef void * (ldap_pvt_thread_start_t) LDAP_P((void *ctx, void *arg));
 typedef void (ldap_pvt_thread_pool_keyfree_t) LDAP_P((void *key, void *data));  typedef void (ldap_pvt_thread_pool_keyfree_t) LDAP_P((void *key, void *data));
   #endif /* !LDAP_PVT_THREAD_H_DONE */
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_pool_init LDAP_P((  ldap_pvt_thread_pool_init LDAP_P((
Line 213  ldap_pvt_thread_pool_context_reset LDAP_ Line 224  ldap_pvt_thread_pool_context_reset LDAP_
   
 LDAP_END_DECL  LDAP_END_DECL
   
   #define LDAP_PVT_THREAD_H_DONE
 #endif /* _LDAP_THREAD_H */  #endif /* _LDAP_THREAD_H */

Removed from v.1.47  
changed lines
  Added in v.1.48


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org