mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Make isc_thread_create() assert internally on failure
Previously isc_thread_create() would return ISC_R_UNEXPECTED on a failure to create new thread. All such occurences were caught and wrapped into assert function at higher level. The function was simplified to assert directly in the isc_thread_create() function and all caller level assertions were removed.
This commit is contained in:
@@ -1295,8 +1295,7 @@ benchmark(void **state) {
|
||||
nthreads = ISC_MIN(isc_os_ncpus(), 32);
|
||||
nthreads = ISC_MAX(nthreads, 1);
|
||||
for (i = 0; i < nthreads; i++) {
|
||||
result = isc_thread_create(find_thread, mytree, &threads[i]);
|
||||
assert_int_equal(result, ISC_R_SUCCESS);
|
||||
isc_thread_create(find_thread, mytree, &threads[i]);
|
||||
}
|
||||
|
||||
for (i = 0; i < nthreads; i++) {
|
||||
|
Reference in New Issue
Block a user