mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
switch to using isc_loopmgr_pause() instead of task exclusive
change functions using isc_taskmgr_beginexclusive() to use isc_loopmgr_pause() instead. also, removed an unnecessary use of exclusive mode in named_server_tcptimeouts(). most functions that were implemented as task events because they needed to be running in a task to use exclusive mode have now been changed into loop callbacks instead. (the exception is catz, which is being changed in a separate commit because it's a particularly complex change.)
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include <isc/once.h>
|
||||
#include <isc/region.h>
|
||||
#include <isc/result.h>
|
||||
#include <isc/task.h>
|
||||
#include <isc/types.h>
|
||||
#include <isc/util.h>
|
||||
#include <isc/uv.h>
|
||||
@@ -268,7 +267,7 @@ dns_dyndb_cleanup(bool exiting) {
|
||||
|
||||
isc_result_t
|
||||
dns_dyndb_createctx(isc_mem_t *mctx, const void *hashinit, isc_log_t *lctx,
|
||||
dns_view_t *view, dns_zonemgr_t *zmgr, isc_task_t *task,
|
||||
dns_view_t *view, dns_zonemgr_t *zmgr,
|
||||
isc_loopmgr_t *loopmgr, dns_dyndbctx_t **dctxp) {
|
||||
dns_dyndbctx_t *dctx;
|
||||
|
||||
@@ -287,9 +286,6 @@ dns_dyndb_createctx(isc_mem_t *mctx, const void *hashinit, isc_log_t *lctx,
|
||||
if (zmgr != NULL) {
|
||||
dns_zonemgr_attach(zmgr, &dctx->zmgr);
|
||||
}
|
||||
if (task != NULL) {
|
||||
isc_task_attach(task, &dctx->task);
|
||||
}
|
||||
|
||||
isc_mem_attach(mctx, &dctx->mctx);
|
||||
dctx->magic = DNS_DYNDBCTX_MAGIC;
|
||||
@@ -316,9 +312,6 @@ dns_dyndb_destroyctx(dns_dyndbctx_t **dctxp) {
|
||||
if (dctx->zmgr != NULL) {
|
||||
dns_zonemgr_detach(&dctx->zmgr);
|
||||
}
|
||||
if (dctx->task != NULL) {
|
||||
isc_task_detach(&dctx->task);
|
||||
}
|
||||
dctx->loopmgr = NULL;
|
||||
dctx->lctx = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user