2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-05 00:55:24 +00:00

Simplify netmgr active handles accounting

The active handles accounting was both using atomic counter and ISC_LIST
to keep track of active handles.  Remove the atomic counter that was in
use before the ISC_LIST was added for better tracking of the handles
attached to the socket.
This commit is contained in:
Ondřej Surý
2023-03-23 09:47:47 +01:00
parent 96cff4fc51
commit 5a43be0775
3 changed files with 52 additions and 58 deletions

View File

@@ -991,11 +991,6 @@ struct isc_nmsocket {
*/
isc_result_t result;
/*%
* Current number of active handles.
*/
atomic_int_fast32_t ah;
/*%
* This function will be called with handle->sock
* as the argument whenever a handle's references drop