Diff for /include/ldap_pvt_thread.h between versions 1.41.2.8 and 1.42

version 1.41.2.8, 2008/02/11 23:24:10 version 1.42, 2005/01/01 19:49:42
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.41.2.7 2007/01/02 21:43:46 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/include/ldap_pvt_thread.h,v 1.41 2004/01/01 18:15:24 kurt 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-2008 The OpenLDAP Foundation.   * Copyright 1998-2005 The OpenLDAP Foundation.
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
Line 15 Line 15
  */   */
   
 #ifndef _LDAP_PVT_THREAD_H  #ifndef _LDAP_PVT_THREAD_H
 #define _LDAP_PVT_THREAD_H /* libldap_r/ldap_thr_debug.h #undefines this */  #define _LDAP_PVT_THREAD_H
   
 #include "ldap_cdefs.h"  #include "ldap_cdefs.h"
 #include "ldap_int_thread.h"  #include "ldap_int_thread.h"
   
 LDAP_BEGIN_DECL  LDAP_BEGIN_DECL
   
 #ifndef LDAP_PVT_THREAD_H_DONE  typedef ldap_int_thread_t ldap_pvt_thread_t;
 typedef ldap_int_thread_t                       ldap_pvt_thread_t;  typedef ldap_int_thread_mutex_t ldap_pvt_thread_mutex_t;
 #ifdef LDAP_THREAD_DEBUG_WRAP  typedef ldap_int_thread_cond_t ldap_pvt_thread_cond_t;
 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 55  ldap_pvt_thread_set_concurrency LDAP_P(( Line 44  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  
 #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 */
 #define LDAP_PVT_THREAD_STACK_SIZE      ( 1 * 1024 * 1024 * sizeof(void *) )  #define LDAP_PVT_THREAD_STACK_SIZE      (4*1024*1024)
 /* May be explicitly defined to zero to disable it */  
 #elif LDAP_PVT_THREAD_STACK_SIZE == 0  
 #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 120  ldap_pvt_thread_mutex_unlock LDAP_P(( ld Line 103  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 158  ldap_pvt_thread_rdwr_active LDAP_P((ldap Line 145  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 187  ldap_pvt_thread_pool_backload LDAP_P(( Line 172  ldap_pvt_thread_pool_backload LDAP_P((
         ldap_pvt_thread_pool_t *pool ));          ldap_pvt_thread_pool_t *pool ));
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_pool_pause LDAP_P((  
         ldap_pvt_thread_pool_t *pool ));  
   
 LDAP_F( int )  
 ldap_pvt_thread_pool_resume LDAP_P((  
         ldap_pvt_thread_pool_t *pool ));  
   
 LDAP_F( int )  
 ldap_pvt_thread_pool_destroy LDAP_P((  ldap_pvt_thread_pool_destroy LDAP_P((
         ldap_pvt_thread_pool_t *pool,          ldap_pvt_thread_pool_t *pool,
         int run_pending ));          int run_pending ));
Line 213  ldap_pvt_thread_pool_setkey LDAP_P(( Line 190  ldap_pvt_thread_pool_setkey LDAP_P((
         void *data,          void *data,
         ldap_pvt_thread_pool_keyfree_t *kfree ));          ldap_pvt_thread_pool_keyfree_t *kfree ));
   
 LDAP_F( void )  
 ldap_pvt_thread_pool_purgekey LDAP_P(( void *key ));  
   
 LDAP_F( void *)  LDAP_F( void *)
 ldap_pvt_thread_pool_context LDAP_P(( void ));  ldap_pvt_thread_pool_context LDAP_P(( void ));
   
 LDAP_F( void )  
 ldap_pvt_thread_pool_context_reset LDAP_P(( void *key ));  
   
 LDAP_END_DECL  LDAP_END_DECL
   
 #define LDAP_PVT_THREAD_H_DONE  
 #endif /* _LDAP_THREAD_H */  #endif /* _LDAP_THREAD_H */

Removed from v.1.41.2.8  
changed lines
  Added in v.1.42


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