]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Always enable CALL_PTHREAD_SETCONCURRENCY as it is part of POSIX Threads
authorOndřej Surý <ondrej@sury.org>
Wed, 5 Sep 2018 11:39:47 +0000 (13:39 +0200)
committerOndřej Surý <ondrej@sury.org>
Fri, 7 Sep 2018 10:17:40 +0000 (12:17 +0200)
acconfig.h
config.h.in
lib/isc/pthreads/thread.c

index 5b59f2e9f874519a2c404267ad41b365ea510482..8d667442bcbc991adfa1832205070279c97bb421 100644 (file)
  ***/
 @TOP@
 
-/**
- * define if pthread_setconcurrency() should be called to tell the
- * OS how many threads we might want to run.
- */
-#undef CALL_PTHREAD_SETCONCURRENCY
-
 /** define if flockfile() is available */
 #undef HAVE_FLOCKFILE
 
index 546c17727e901d889165dd4e157d85c4272e5614..e838e776a417615b75e0fd851461b912fc01db8a 100644 (file)
  *** it does not get installed.
  ***/
 
-/**
- * define if pthread_setconcurrency() should be called to tell the
- * OS how many threads we might want to run.
- */
-#undef CALL_PTHREAD_SETCONCURRENCY
-
 /** define if flockfile() is available */
 #undef HAVE_FLOCKFILE
 
index c84196799bc4b26d69f6d5c03a2f05118acdd871..5f82475ed5121fb94733c2080f05152a3c92f64e 100644 (file)
@@ -68,11 +68,7 @@ isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg,
 
 void
 isc_thread_setconcurrency(unsigned int level) {
-#if defined(CALL_PTHREAD_SETCONCURRENCY)
        (void)pthread_setconcurrency(level);
-#else
-       UNUSED(level);
-#endif
 }
 
 void