mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 18:52:07 -04:00
Fix atomics usage for mutexatomics
This commit is contained in:
parent
d72845f01c
commit
d708370db4
2 changed files with 2 additions and 2 deletions
|
|
@ -4832,7 +4832,7 @@ fctx_create(dns_resolver_t *res, const dns_name_t *name, dns_rdatatype_t type,
|
|||
fctx->vresult = ISC_R_SUCCESS;
|
||||
fctx->exitline = -1; /* sentinel */
|
||||
fctx->logged = false;
|
||||
atomic_store(&fctx->attributes, 0);
|
||||
atomic_init(&fctx->attributes, 0);
|
||||
fctx->spilled = false;
|
||||
fctx->nqueries = 0;
|
||||
fctx->reason = NULL;
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ void
|
|||
isc_hp_destroy(isc_hp_t *hp) {
|
||||
for (int i = 0; i < isc__hp_max_threads; i++) {
|
||||
isc_mem_put(hp->mctx, hp->hp[i],
|
||||
CLPAD * 2 * sizeof(uintptr_t));
|
||||
CLPAD * 2 * sizeof(hp->hp[i][0]));
|
||||
|
||||
for (int j = 0; j < hp->rl[i]->size; j++) {
|
||||
void *data = (void *)hp->rl[i]->list[j];
|
||||
|
|
|
|||
Loading…
Reference in a new issue