Fix get/set conconcurrency routines under Solaris

This commit is contained in:
Kurt Zeilenga 2000-07-06 17:21:21 +00:00
parent 4f4f59f333
commit 821f0e17f2

View File

@ -48,28 +48,28 @@ ldap_int_thread_destroy( void )
return 0; return 0;
} }
#ifdef HAVE_PTHREAD_SETCONCURRENCY #ifdef LDAP_THREAD_HAVE_SETCONCURRENCY
int int
ldap_pvt_thread_set_concurrency(int n) ldap_pvt_thread_set_concurrency(int n)
{ {
#ifdef HAVE_PTHREAD_SETCONCURRENCY #ifdef HAVE_PTHREAD_SETCONCURRENCY
return pthread_setconcurrency( n ); return pthread_setconcurrency( n );
#elif HAVE_THR_SETCONCURRENCY #elif HAVE_THR_SETCONCURRENCY
return pthread_setconcurrency( n ); return thr_setconcurrency( n );
#else #else
return 0; return 0;
#endif #endif
} }
#endif #endif
#ifdef HAVE_PTHREAD_GETCONCURRENCY #ifdef LDAP_THREAD_HAVE_GETCONCURRENCY
int int
ldap_pvt_thread_get_concurrency(void) ldap_pvt_thread_get_concurrency(void)
{ {
#ifdef HAVE_PTHREAD_GETCONCURRENCY #ifdef HAVE_PTHREAD_GETCONCURRENCY
return pthread_getconcurrency(); return pthread_getconcurrency();
#elif HAVE_THR_GETCONCURRENCY #elif HAVE_THR_GETCONCURRENCY
return pthread_getconcurrency(); return thr_getconcurrency();
#else #else
return 0; return 0;
#endif #endif