mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Always enable CALL_PTHREAD_SETCONCURRENCY as it is part of POSIX Threads
This commit is contained in:
@@ -17,12 +17,6 @@
|
|||||||
***/
|
***/
|
||||||
@TOP@
|
@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 */
|
/** define if flockfile() is available */
|
||||||
#undef HAVE_FLOCKFILE
|
#undef HAVE_FLOCKFILE
|
||||||
|
|
||||||
|
@@ -17,12 +17,6 @@
|
|||||||
*** it does not get installed.
|
*** 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 */
|
/** define if flockfile() is available */
|
||||||
#undef HAVE_FLOCKFILE
|
#undef HAVE_FLOCKFILE
|
||||||
|
|
||||||
|
@@ -68,11 +68,7 @@ isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg,
|
|||||||
|
|
||||||
void
|
void
|
||||||
isc_thread_setconcurrency(unsigned int level) {
|
isc_thread_setconcurrency(unsigned int level) {
|
||||||
#if defined(CALL_PTHREAD_SETCONCURRENCY)
|
|
||||||
(void)pthread_setconcurrency(level);
|
(void)pthread_setconcurrency(level);
|
||||||
#else
|
|
||||||
UNUSED(level);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user