]> git.sur5r.net Git - openldap/blob - servers/slapd/init.c
Apply fixes for ITS24 & ITS26 from devel.
[openldap] / servers / slapd / init.c
1 /* init.c - initialize various things */
2
3 #include "portable.h"
4
5 #include <stdio.h>
6
7 #include <ac/socket.h>
8 #include <ac/string.h>
9 #include <ac/time.h>
10
11 #include "portable.h"
12 #include "slap.h"
13
14 void
15 init( void )
16 {
17         pthread_mutex_init( &active_threads_mutex, pthread_mutexattr_default );
18         pthread_mutex_init( &new_conn_mutex, pthread_mutexattr_default );
19         pthread_mutex_init( &currenttime_mutex, pthread_mutexattr_default );
20         pthread_mutex_init( &entry2str_mutex, pthread_mutexattr_default );
21         pthread_mutex_init( &replog_mutex, pthread_mutexattr_default );
22         pthread_mutex_init( &ops_mutex, pthread_mutexattr_default );
23         pthread_mutex_init( &num_sent_mutex, pthread_mutexattr_default );
24 #ifdef SLAPD_CRYPT
25         pthread_mutex_init( &crypt_mutex, pthread_mutexattr_default );
26 #endif
27 }