2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Merge branch 'each-fix-mutex-test' into 'main'

fix commit error in mutex_test

See merge request isc-projects/bind9!7874
This commit is contained in:
Ondřej Surý
2023-04-28 05:06:44 +00:00

View File

@@ -81,8 +81,8 @@ static size_t expected_counter = SIZE_MAX;
static isc_mutex_t lock; static isc_mutex_t lock;
static pthread_mutex_t mutex; static pthread_mutex_t mutex;
static isc_threadresult_t static void *
pthread_mutex_thread(isc_threadarg_t arg) { pthread_mutex_thread(void *arg) {
size_t cont = *(size_t *)arg; size_t cont = *(size_t *)arg;
for (size_t i = 0; i < loops; i++) { for (size_t i = 0; i < loops; i++) {
@@ -94,11 +94,11 @@ pthread_mutex_thread(isc_threadarg_t arg) {
isc_pause_n(cont); isc_pause_n(cont);
} }
return ((isc_threadresult_t)0); return (NULL);
} }
static isc_threadresult_t static void *
isc_mutex_thread(isc_threadarg_t arg) { isc_mutex_thread(void *arg) {
size_t cont = *(size_t *)arg; size_t cont = *(size_t *)arg;
for (size_t i = 0; i < loops; i++) { for (size_t i = 0; i < loops; i++) {
@@ -110,7 +110,7 @@ isc_mutex_thread(isc_threadarg_t arg) {
isc_pause_n(cont); isc_pause_n(cont);
} }
return ((isc_threadresult_t)0); return (NULL);
} }
ISC_RUN_TEST_IMPL(isc_mutex_benchmark) { ISC_RUN_TEST_IMPL(isc_mutex_benchmark) {