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

version 1.20.2.9, 2011/01/03 20:37:04 version 1.25, 2007/01/10 23:55:26
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$ */  /* $OpenLDAP: pkg/ldap/include/ldap_int_thread.h,v 1.24 2007/01/10 00:29:16 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-2010 The OpenLDAP Foundation.   * Copyright 1998-2007 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 80  LDAP_END_DECL Line 79  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_CTHREADS_H )  #elif defined( HAVE_CTHREAD_H
 #       include <cthreads.h>  #       include <cthreads.h>
 #endif  #endif
   
Line 89  LDAP_BEGIN_DECL Line 88  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 108  LDAP_BEGIN_DECL Line 106  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 132  LDAP_BEGIN_DECL Line 129  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 145  typedef thread_key_t ldap_int_thread_key Line 141  typedef thread_key_t ldap_int_thread_key
   
 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 160  LDAP_BEGIN_DECL Line 181  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 181  LDAP_BEGIN_DECL Line 201  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.20.2.9  
changed lines
  Added in v.1.25


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