2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

- Make isc_mutex_destroy return void

- Make isc_mutexblock_init/destroy return void
- Minor cleanups
This commit is contained in:
Witold Kręcicki
2018-11-19 10:31:09 +00:00
parent d940e95206
commit 929ea7c2c4
58 changed files with 219 additions and 243 deletions

View File

@@ -1967,7 +1967,7 @@ free_socket(isc__socket_t **socketp) {
sock->common.magic = 0;
sock->common.impmagic = 0;
DESTROYLOCK(&sock->lock);
isc_mutex_destroy(&sock->lock);
isc_mem_put(sock->manager->mctx, sock, sizeof(*sock));
@@ -3890,7 +3890,7 @@ cleanup_thread(isc_mem_t *mctx, isc__socketthread_t *thread) {
if (thread->fdlock != NULL) {
for (i = 0; i < FDLOCK_COUNT; i++) {
DESTROYLOCK(&thread->fdlock[i]);
isc_mutex_destroy(&thread->fdlock[i]);
}
isc_mem_put(thread->manager->mctx, thread->fdlock,
FDLOCK_COUNT * sizeof(isc_mutex_t));
@@ -4045,7 +4045,7 @@ isc_socketmgr_destroy(isc_socketmgr_t **managerp) {
if (manager->stats != NULL) {
isc_stats_detach(&manager->stats);
}
DESTROYLOCK(&manager->lock);
isc_mutex_destroy(&manager->lock);
manager->common.magic = 0;
manager->common.impmagic = 0;
mctx= manager->mctx;