openldap/servers/slapd/init.c

29 lines
843 B
C
Raw Normal View History

1998-08-08 20:43:13 -04:00
/* init.c - initialize various things */
1998-10-24 21:41:42 -04:00
#include "portable.h"
1998-08-08 20:43:13 -04:00
#include <stdio.h>
1998-10-24 21:41:42 -04:00
#include <ac/socket.h>
#include <ac/string.h>
#include <ac/time.h>
1998-08-08 20:43:13 -04:00
#include "portable.h"
#include "slap.h"
void
init( void )
1998-08-08 20:43:13 -04:00
{
pthread_mutex_init( &active_threads_mutex, pthread_mutexattr_default );
pthread_mutex_init( &new_conn_mutex, pthread_mutexattr_default );
pthread_mutex_init( &currenttime_mutex, pthread_mutexattr_default );
1999-01-01 15:43:29 -05:00
pthread_mutex_init( &strtok_mutex, pthread_mutexattr_default );
1998-08-08 20:43:13 -04:00
pthread_mutex_init( &entry2str_mutex, pthread_mutexattr_default );
pthread_mutex_init( &replog_mutex, pthread_mutexattr_default );
pthread_mutex_init( &ops_mutex, pthread_mutexattr_default );
pthread_mutex_init( &num_sent_mutex, pthread_mutexattr_default );
#ifdef SLAPD_CRYPT
pthread_mutex_init( &crypt_mutex, pthread_mutexattr_default );
#endif
1998-08-08 20:43:13 -04:00
}