/* thr_cthreads.c - wrapper for mach cthreads */
#include "portable.h"
-#include "ldap_pvt_thread.h"
#if defined( HAVE_MACH_CTHREADS )
+#include "ldap_pvt_thread.h"
/***********************************************************************
* *
*/
#include "portable.h"
-#include "ldap_pvt_thread.h"
#if defined( HAVE_LWP )
#include <ac/time.h>
#include <ac/socket.h>
-#include "lber.h"
-#include "ldap.h"
-#include "ldap_log.h"
+#include "ldap-int.h"
+
+#include "ldap_pvt_thread.h"
#include <lwp/lwp.h>
#include <lwp/stackdep.h>
int i;
if ( stacks == NULL ) {
- stacks = (struct stackinfo *) ch_calloc( 1, MAX_THREADS *
+ stacks = (struct stackinfo *) LDAP_CALLOC( 1, MAX_THREADS *
sizeof(struct stackinfo) );
}
/* thr_nt.c - wrapper around NT threads */
#include "portable.h"
-#include "ldap_pvt_thread.h"
#if defined( HAVE_NT_THREADS )
+#include "ldap_pvt_thread.h"
+
int
ldap_pvt_thread_initialize( void )
{
#include "portable.h"
+#if defined( HAVE_PTHREADS )
+
#include <ac/errno.h>
#include "ldap_pvt_thread.h"
-#if defined( HAVE_PTHREADS )
#if HAVE_PTHREADS_D4
# define LDAP_PVT_THREAD_ATTR_DEFAULT pthread_attr_default
#include "portable.h"
+#if !defined( HAVE_LWP )
+
#include <stdio.h>
#include <stdlib.h>
#include <ac/unistd.h> /* get sleep() */
#include "ldap_pvt_thread.h"
-#if !defined( HAVE_LWP )
/*
* Here we assume we have fully preemptive threads and that sleep()
/* thr_stub.c - stubs for the threads */
#include "portable.h"
-#include "ldap_pvt_thread.h"
#if defined( NO_THREADS )
+#include "ldap_pvt_thread.h"
+
/***********************************************************************
* *
* no threads package defined for this system - fake ok returns from *
/* thr_thr.c - wrappers around solaris threads */
#include "portable.h"
-#include "ldap_pvt_thread.h"
#if defined( HAVE_THR )
+#include "ldap_pvt_thread.h"
+
/*******************
* *
* Solaris Threads *