Diff for /include/ldap_int_thread.h between versions 1.25 and 1.31

version 1.25, 2007/01/10 23:55:26 version 1.31, 2010/10/12 08:26:32
Line 1 Line 1
 /* ldap_int_thread.h - ldap internal thread wrappers header file */  /* ldap_int_thread.h - ldap internal thread wrappers header file */
 /* $OpenLDAP: pkg/ldap/include/ldap_int_thread.h,v 1.24 2007/01/10 00:29:16 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/include/ldap_int_thread.h,v 1.30 2010/04/13 20:17:49 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-2007 The OpenLDAP Foundation.   * Copyright 1998-2010 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 44  LDAP_BEGIN_DECL Line 44  LDAP_BEGIN_DECL
 typedef pthread_t               ldap_int_thread_t;  typedef pthread_t               ldap_int_thread_t;
 typedef pthread_mutex_t         ldap_int_thread_mutex_t;  typedef pthread_mutex_t         ldap_int_thread_mutex_t;
 typedef pthread_cond_t          ldap_int_thread_cond_t;  typedef pthread_cond_t          ldap_int_thread_cond_t;
   typedef pthread_key_t           ldap_int_thread_key_t;
   
 #define ldap_int_thread_equal(a, b)     pthread_equal((a), (b))  #define ldap_int_thread_equal(a, b)     pthread_equal((a), (b))
   
Line 79  LDAP_END_DECL Line 80  LDAP_END_DECL
   
 #if defined( HAVE_MACH_CTHREADS_H )  #if defined( HAVE_MACH_CTHREADS_H )
 #       include <mach/cthreads.h>  #       include <mach/cthreads.h>
 #elif defined( HAVE_CTHREAD_H  #elif defined( HAVE_CTHREADS_H )
 #       include <cthreads.h>  #       include <cthreads.h>
 #endif  #endif
   
Line 88  LDAP_BEGIN_DECL Line 89  LDAP_BEGIN_DECL
 typedef cthread_t               ldap_int_thread_t;  typedef cthread_t               ldap_int_thread_t;
 typedef struct mutex            ldap_int_thread_mutex_t;  typedef struct mutex            ldap_int_thread_mutex_t;
 typedef struct condition        ldap_int_thread_cond_t;  typedef struct condition        ldap_int_thread_cond_t;
   typedef cthread_key_t           ldap_int_thread_key_t;
   
 LDAP_END_DECL  LDAP_END_DECL
   
Line 106  LDAP_BEGIN_DECL Line 108  LDAP_BEGIN_DECL
 typedef pth_t           ldap_int_thread_t;  typedef pth_t           ldap_int_thread_t;
 typedef pth_mutex_t     ldap_int_thread_mutex_t;  typedef pth_mutex_t     ldap_int_thread_mutex_t;
 typedef pth_cond_t      ldap_int_thread_cond_t;  typedef pth_cond_t      ldap_int_thread_cond_t;
   typedef pth_key_t       ldap_int_thread_key_t;
   
 #if 0  #if 0
 #define LDAP_THREAD_HAVE_RDWR 1  #define LDAP_THREAD_HAVE_RDWR 1
Line 129  LDAP_BEGIN_DECL Line 132  LDAP_BEGIN_DECL
 typedef thread_t                ldap_int_thread_t;  typedef thread_t                ldap_int_thread_t;
 typedef mutex_t                 ldap_int_thread_mutex_t;  typedef mutex_t                 ldap_int_thread_mutex_t;
 typedef cond_t                  ldap_int_thread_cond_t;  typedef cond_t                  ldap_int_thread_cond_t;
   typedef thread_key_t    ldap_int_thread_key_t;
   
 #define HAVE_REENTRANT_FUNCTIONS 1  #define HAVE_REENTRANT_FUNCTIONS 1
   
Line 141  typedef cond_t   ldap_int_thread_cond_t; Line 145  typedef cond_t   ldap_int_thread_cond_t;
   
 LDAP_END_DECL  LDAP_END_DECL
   
 #elif defined( HAVE_LWP )  
 /*************************************  
  *                                   *  
  * thread definitions for SunOS LWP  *  
  *                                   *  
  *************************************/  
   
 #include <lwp/lwp.h>  
 #include <lwp/stackdep.h>  
 #define LDAP_THREAD_HAVE_SLEEP 1  
   
 LDAP_BEGIN_DECL  
   
 typedef thread_t                ldap_int_thread_t;  
 typedef mon_t                   ldap_int_thread_mutex_t;  
 struct ldap_int_thread_lwp_cv {  
         int             lcv_created;  
         cv_t            lcv_cv;  
 };  
 typedef struct ldap_int_thread_lwp_cv ldap_int_thread_cond_t;  
   
 #define HAVE_REENTRANT_FUNCTIONS 1  
   
 LDAP_END_DECL  
   
 #elif defined(HAVE_NT_THREADS)  #elif defined(HAVE_NT_THREADS)
 /*************************************  /*************************************
  *                                   *   *                                   *
Line 181  LDAP_BEGIN_DECL Line 160  LDAP_BEGIN_DECL
 typedef unsigned long   ldap_int_thread_t;  typedef unsigned long   ldap_int_thread_t;
 typedef HANDLE  ldap_int_thread_mutex_t;  typedef HANDLE  ldap_int_thread_mutex_t;
 typedef HANDLE  ldap_int_thread_cond_t;  typedef HANDLE  ldap_int_thread_cond_t;
   typedef DWORD   ldap_int_thread_key_t;
   
 LDAP_END_DECL  LDAP_END_DECL
   
Line 201  LDAP_BEGIN_DECL Line 181  LDAP_BEGIN_DECL
 typedef int                     ldap_int_thread_t;  typedef int                     ldap_int_thread_t;
 typedef int                     ldap_int_thread_mutex_t;  typedef int                     ldap_int_thread_mutex_t;
 typedef int                     ldap_int_thread_cond_t;  typedef int                     ldap_int_thread_cond_t;
   typedef int                     ldap_int_thread_key_t;
   
 #define LDAP_THREAD_HAVE_TPOOL 1  #define LDAP_THREAD_HAVE_TPOOL 1
 typedef int                     ldap_int_thread_pool_t;  typedef int                     ldap_int_thread_pool_t;

Removed from v.1.25  
changed lines
  Added in v.1.31


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