2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +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

@@ -652,7 +652,7 @@ exit_check(ns_client_t *client) {
* Destroy the fetchlock mutex that was created in
* ns_query_init().
*/
DESTROYLOCK(&client->query.fetchlock);
isc_mutex_destroy(&client->query.fetchlock);
if (client->sctx != NULL)
ns_server_detach(&client->sctx);
@@ -3394,9 +3394,9 @@ clientmgr_destroy(ns_clientmgr_t *manager) {
ISC_QUEUE_DESTROY(manager->inactive);
DESTROYLOCK(&manager->lock);
DESTROYLOCK(&manager->listlock);
DESTROYLOCK(&manager->reclock);
isc_mutex_destroy(&manager->lock);
isc_mutex_destroy(&manager->listlock);
isc_mutex_destroy(&manager->reclock);
if (manager->excl != NULL)
isc_task_detach(&manager->excl);
@@ -3456,9 +3456,9 @@ ns_clientmgr_create(isc_mem_t *mctx, ns_server_t *sctx, isc_taskmgr_t *taskmgr,
return (ISC_R_SUCCESS);
cleanup_reclock:
(void) isc_mutex_destroy(&manager->reclock);
(void) isc_mutex_destroy(&manager->listlock);
(void) isc_mutex_destroy(&manager->lock);
isc_mutex_destroy(&manager->reclock);
isc_mutex_destroy(&manager->listlock);
isc_mutex_destroy(&manager->lock);
isc_mem_put(manager->mctx, manager, sizeof(*manager));