add isc_thread_setconcurrency()
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <isc/thread.h>
|
||||
#include <isc/util.h>
|
||||
|
||||
#ifndef THREAD_MINSTACKSIZE
|
||||
#define THREAD_MINSTACKSIZE (64 * 1024)
|
||||
@@ -51,3 +52,12 @@ isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg,
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
void
|
||||
isc_thread_setconcurrency(unsigned int level) {
|
||||
#if defined(CALL_PTHREAD_SETCONCURRENCY)
|
||||
(void)pthread_setconcurrency(level);
|
||||
#else
|
||||
UNUSED(level);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user