Commit 5d8f9bf9 authored by Ondřej Surý's avatar Ondřej Surý

Always enable CALL_PTHREAD_SETCONCURRENCY as it is part of POSIX Threads

parent fa048a9b
...@@ -17,12 +17,6 @@ ...@@ -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 @@ ...@@ -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, ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment