add isc_thread_setconcurrency()

This commit is contained in:
Michael Graff
2000-06-22 01:48:24 +00:00
parent 52cff07fe2
commit 0eb2572d79
7 changed files with 186 additions and 120 deletions

View File

@@ -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
}