Diff for /include/ldap_pvt_thread.h between versions 1.51.2.16 and 1.52

version 1.51.2.16, 2011/01/06 18:43:20 version 1.52, 2006/04/28 18:12:45
Line 1 Line 1
 /* ldap_pvt_thread.h - ldap threads header file */  /* ldap_pvt_thread.h - ldap threads header file */
 /* $OpenLDAP$ */  /* $OpenLDAP: pkg/ldap/include/ldap_pvt_thread.h,v 1.51 2006/04/01 17:00:37 ando 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-2011 The OpenLDAP Foundation.   * Copyright 1998-2006 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 28  typedef ldap_int_thread_t   ldap_pvt_thr Line 28  typedef ldap_int_thread_t   ldap_pvt_thr
 typedef ldap_debug_thread_mutex_t       ldap_pvt_thread_mutex_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_cond_t        ldap_pvt_thread_cond_t;
 typedef ldap_debug_thread_rdwr_t        ldap_pvt_thread_rdwr_t;  typedef ldap_debug_thread_rdwr_t        ldap_pvt_thread_rdwr_t;
 #define LDAP_PVT_MUTEX_FIRSTCREATE      LDAP_DEBUG_MUTEX_FIRSTCREATE  
 #define LDAP_PVT_MUTEX_NULL                     LDAP_DEBUG_MUTEX_NULL  
 #else  #else
 typedef ldap_int_thread_mutex_t         ldap_pvt_thread_mutex_t;  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_cond_t          ldap_pvt_thread_cond_t;
 typedef ldap_int_thread_rdwr_t          ldap_pvt_thread_rdwr_t;  typedef ldap_int_thread_rdwr_t          ldap_pvt_thread_rdwr_t;
 #define LDAP_PVT_MUTEX_FIRSTCREATE      LDAP_INT_MUTEX_FIRSTCREATE  
 #define LDAP_PVT_MUTEX_NULL                     LDAP_INT_MUTEX_NULL  
 #endif  #endif
 typedef ldap_int_thread_rmutex_t        ldap_pvt_thread_rmutex_t;  typedef ldap_int_thread_rmutex_t        ldap_pvt_thread_rmutex_t;
 typedef ldap_int_thread_key_t   ldap_pvt_thread_key_t;  
 #endif /* !LDAP_PVT_THREAD_H_DONE */  #endif /* !LDAP_PVT_THREAD_H_DONE */
   
   #if 0 && defined(LDAP_DEVEL)
   /* must also be defined in slapd.h */
   #define LDAP_PVT_THREAD_POOL_SEM_LOAD_CONTROL
   #endif
   
 #define ldap_pvt_thread_equal           ldap_int_thread_equal  #define ldap_pvt_thread_equal           ldap_int_thread_equal
   
 LDAP_F( int )  LDAP_F( int )
Line 63  ldap_pvt_thread_set_concurrency LDAP_P(( Line 63  ldap_pvt_thread_set_concurrency LDAP_P((
   
 #ifndef LDAP_PVT_THREAD_H_DONE  #ifndef LDAP_PVT_THREAD_H_DONE
 #define LDAP_PVT_THREAD_SET_STACK_SIZE  #define LDAP_PVT_THREAD_SET_STACK_SIZE
 /* The size may be explicitly #defined to zero to disable it. */  #ifndef LDAP_PVT_THREAD_STACK_SIZE
 #if defined( LDAP_PVT_THREAD_STACK_SIZE ) && LDAP_PVT_THREAD_STACK_SIZE == 0  
 #       undef LDAP_PVT_THREAD_SET_STACK_SIZE  
 #elif !defined( 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. */
 #       define LDAP_PVT_THREAD_STACK_SIZE ( 1 * 1024 * 1024 * sizeof(void *) )  #define LDAP_PVT_THREAD_STACK_SIZE      ( 1 * 1024 * 1024 * sizeof(void *) )
   /* 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 */  #endif /* !LDAP_PVT_THREAD_H_DONE */
   
Line 130  LDAP_F( int ) Line 130  LDAP_F( int )
 ldap_pvt_thread_rmutex_destroy LDAP_P(( ldap_pvt_thread_rmutex_t *rmutex ));  ldap_pvt_thread_rmutex_destroy LDAP_P(( ldap_pvt_thread_rmutex_t *rmutex ));
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_rmutex_lock LDAP_P(( ldap_pvt_thread_rmutex_t *rmutex,  ldap_pvt_thread_rmutex_lock LDAP_P(( ldap_pvt_thread_rmutex_t *rmutex ));
         ldap_pvt_thread_t owner));  
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_rmutex_trylock LDAP_P(( ldap_pvt_thread_rmutex_t *rmutex,  ldap_pvt_thread_rmutex_trylock LDAP_P(( ldap_pvt_thread_rmutex_t *rmutex ));
         ldap_pvt_thread_t owner));  
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_rmutex_unlock LDAP_P(( ldap_pvt_thread_rmutex_t *rmutex,  ldap_pvt_thread_rmutex_unlock LDAP_P(( ldap_pvt_thread_rmutex_t *rmutex ));
         ldap_pvt_thread_t owner));  
   
 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 ));
Line 174  ldap_pvt_thread_rdwr_wtrylock LDAP_P((ld Line 171  ldap_pvt_thread_rdwr_wtrylock LDAP_P((ld
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_rdwr_wunlock LDAP_P((ldap_pvt_thread_rdwr_t *rdwrp));  ldap_pvt_thread_rdwr_wunlock LDAP_P((ldap_pvt_thread_rdwr_t *rdwrp));
   
 LDAP_F( int )  
 ldap_pvt_thread_key_create LDAP_P((ldap_pvt_thread_key_t *keyp));  
   
 LDAP_F( int )  
 ldap_pvt_thread_key_destroy LDAP_P((ldap_pvt_thread_key_t key));  
   
 LDAP_F( int )  
 ldap_pvt_thread_key_setdata LDAP_P((ldap_pvt_thread_key_t key, void *data));  
   
 LDAP_F( int )  
 ldap_pvt_thread_key_getdata LDAP_P((ldap_pvt_thread_key_t key, void **data));  
   
 #ifdef LDAP_DEBUG  #ifdef LDAP_DEBUG
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_rdwr_readers LDAP_P((ldap_pvt_thread_rdwr_t *rdwrp));  ldap_pvt_thread_rdwr_readers LDAP_P((ldap_pvt_thread_rdwr_t *rdwrp));
Line 220  ldap_pvt_thread_pool_submit LDAP_P(( Line 205  ldap_pvt_thread_pool_submit LDAP_P((
         void *arg ));          void *arg ));
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_pool_retract LDAP_P((  
         ldap_pvt_thread_pool_t *pool,  
         ldap_pvt_thread_start_t *start,  
         void *arg ));  
   
 LDAP_F( int )  
 ldap_pvt_thread_pool_maxthreads LDAP_P((  ldap_pvt_thread_pool_maxthreads LDAP_P((
         ldap_pvt_thread_pool_t *pool,          ldap_pvt_thread_pool_t *pool,
         int max_threads ));          int max_threads ));
   
 #ifndef LDAP_PVT_THREAD_H_DONE  
 typedef enum {  
         LDAP_PVT_THREAD_POOL_PARAM_UNKNOWN = -1,  
         LDAP_PVT_THREAD_POOL_PARAM_MAX,  
         LDAP_PVT_THREAD_POOL_PARAM_MAX_PENDING,  
         LDAP_PVT_THREAD_POOL_PARAM_OPEN,  
         LDAP_PVT_THREAD_POOL_PARAM_STARTING,  
         LDAP_PVT_THREAD_POOL_PARAM_ACTIVE,  
         LDAP_PVT_THREAD_POOL_PARAM_PAUSING,  
         LDAP_PVT_THREAD_POOL_PARAM_PENDING,  
         LDAP_PVT_THREAD_POOL_PARAM_BACKLOAD,  
         LDAP_PVT_THREAD_POOL_PARAM_ACTIVE_MAX,  
         LDAP_PVT_THREAD_POOL_PARAM_PENDING_MAX,  
         LDAP_PVT_THREAD_POOL_PARAM_BACKLOAD_MAX,  
         LDAP_PVT_THREAD_POOL_PARAM_STATE  
 } ldap_pvt_thread_pool_param_t;  
 #endif /* !LDAP_PVT_THREAD_H_DONE */  
   
 LDAP_F( int )  
 ldap_pvt_thread_pool_query LDAP_P((  
         ldap_pvt_thread_pool_t *pool,  
         ldap_pvt_thread_pool_param_t param, void *value ));  
   
 LDAP_F( int )  
 ldap_pvt_thread_pool_pausing LDAP_P((  
         ldap_pvt_thread_pool_t *pool ));  
   
 LDAP_F( int )  LDAP_F( int )
 ldap_pvt_thread_pool_backload LDAP_P((  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_pausecheck LDAP_P((  
         ldap_pvt_thread_pool_t *pool ));  
   
 LDAP_F( int )  
 ldap_pvt_thread_pool_pause LDAP_P((  ldap_pvt_thread_pool_pause LDAP_P((
         ldap_pvt_thread_pool_t *pool ));          ldap_pvt_thread_pool_t *pool ));
   
Line 290  ldap_pvt_thread_pool_setkey LDAP_P(( Line 238  ldap_pvt_thread_pool_setkey LDAP_P((
         void *ctx,          void *ctx,
         void *key,          void *key,
         void *data,          void *data,
         ldap_pvt_thread_pool_keyfree_t *kfree,          ldap_pvt_thread_pool_keyfree_t *kfree ));
         void **olddatap,  
         ldap_pvt_thread_pool_keyfree_t **oldkfreep ));  
   
 LDAP_F( void )  LDAP_F( void )
 ldap_pvt_thread_pool_purgekey LDAP_P(( void *key ));  ldap_pvt_thread_pool_purgekey LDAP_P(( void *key ));
Line 303  ldap_pvt_thread_pool_context LDAP_P(( vo Line 249  ldap_pvt_thread_pool_context LDAP_P(( vo
 LDAP_F( void )  LDAP_F( void )
 ldap_pvt_thread_pool_context_reset LDAP_P(( void *key ));  ldap_pvt_thread_pool_context_reset LDAP_P(( void *key ));
   
 LDAP_F( ldap_pvt_thread_t )  
 ldap_pvt_thread_pool_tid LDAP_P(( void *ctx ));  
   
 LDAP_END_DECL  LDAP_END_DECL
   
 #define LDAP_PVT_THREAD_H_DONE  #define LDAP_PVT_THREAD_H_DONE
 #endif /* _LDAP_PVT_THREAD_H */  #endif /* _LDAP_THREAD_H */

Removed from v.1.51.2.16  
changed lines
  Added in v.1.52


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