mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
mutex declaration should be moved from slapd/main.c to slapd/init.c so we don't have ripple changes through slapd/tools.
27 lines
778 B
C
27 lines
778 B
C
/* init.c - initialize various things */
|
|
|
|
#include "portable.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <ac/socket.h>
|
|
#include <ac/string.h>
|
|
#include <ac/time.h>
|
|
|
|
#include "portable.h"
|
|
#include "slap.h"
|
|
|
|
void
|
|
init( void )
|
|
{
|
|
pthread_mutex_init( &active_threads_mutex, pthread_mutexattr_default );
|
|
pthread_mutex_init( &new_conn_mutex, pthread_mutexattr_default );
|
|
pthread_mutex_init( ¤ttime_mutex, pthread_mutexattr_default );
|
|
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
|
|
}
|