Import concurrency fix from devel.

This commit is contained in:
Kurt Zeilenga 1999-02-03 18:33:53 +00:00
parent 968898967b
commit 73b6d989ed
3 changed files with 4 additions and 4 deletions

View file

@ -169,7 +169,7 @@ ldap_pvt_thread_sleep LDAP_P(( unsigned int s ));
#ifdef HAVE_GETCONCURRENCY
LDAP_F int
ldap_pvt_thread_getconcurrency LDAP_P(( void ));
ldap_pvt_thread_get_concurrency LDAP_P(( void ));
#endif
#ifdef HAVE_SETCONCURRENCY
# ifndef LDAP_THREAD_CONCURRENCY
@ -177,7 +177,7 @@ ldap_pvt_thread_getconcurrency LDAP_P(( void ));
# define LDAP_THREAD_CONCURRENCY 3
# endif
LDAP_F int
ldap_pvt_thread_setconcurrency LDAP_P(( int ));
ldap_pvt_thread_set_concurrency LDAP_P(( int ));
#endif
LDAP_F int

View file

@ -20,7 +20,7 @@ int
ldap_pvt_thread_initialize( void )
{
#if defined( LDAP_THREAD_CONCURRENCY ) && HAVE_PTHREAD_SETCONCURRENCY
ldap_pvt_thread_setconcurrency( LDAP_THREAD_CONCURRENCY );
ldap_pvt_thread_set_concurrency( LDAP_THREAD_CONCURRENCY );
#endif
return 0;
}

View file

@ -179,7 +179,7 @@ monitor_info( Connection *conn, Operation *op )
attr_merge( e, "nbackends", vals );
#ifdef HAVE_THREAD_CONCURRENCY
sprintf( buf, "%d", ldap_pvt_thread_getconcurrency() );
sprintf( buf, "%d", ldap_pvt_thread_get_concurrency() );
val.bv_val = buf;
val.bv_len = strlen( buf );
attr_merge( e, "concurrency", vals );