]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap_r/thr_posix.c
Only set URANDOM_DEVICE if undef
[openldap] / libraries / libldap_r / thr_posix.c
index 95d30f1b4b4d186471073954d73ee010ae9c2a90..c1cadb88252c85f719f6cac678d98e19d4f262d6 100644 (file)
@@ -41,31 +41,35 @@ ldap_int_thread_initialize( void )
 int
 ldap_int_thread_destroy( void )
 {
+#ifdef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
+       /* LinuxThreads: kill clones */
+       pthread_kill_other_threads_np();
+#endif
        return 0;
 }
 
-#ifdef HAVE_PTHREAD_SETCONCURRENCY
+#ifdef LDAP_THREAD_HAVE_SETCONCURRENCY
 int
 ldap_pvt_thread_set_concurrency(int n)
 {
 #ifdef HAVE_PTHREAD_SETCONCURRENCY
        return pthread_setconcurrency( n );
 #elif HAVE_THR_SETCONCURRENCY
-       return pthread_setconcurrency( n );
+       return thr_setconcurrency( n );
 #else
        return 0;
 #endif
 }
 #endif
 
-#ifdef HAVE_PTHREAD_GETCONCURRENCY
+#ifdef LDAP_THREAD_HAVE_GETCONCURRENCY
 int
 ldap_pvt_thread_get_concurrency(void)
 {
 #ifdef HAVE_PTHREAD_GETCONCURRENCY
        return pthread_getconcurrency();
 #elif HAVE_THR_GETCONCURRENCY
-       return pthread_getconcurrency();
+       return thr_getconcurrency();
 #else
        return 0;
 #endif