From 71e459eea31e9e47c0ce64a78e32b242d357f9a0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 7 Dec 2024 11:44:22 -0800 Subject: fini: add drain mechanism for aio, reap, and task subsystems Make sure *everything* is drained before proceeding all the way to deallocation. --- src/core/reap.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/core/reap.h') diff --git a/src/core/reap.h b/src/core/reap.h index 5f631885..221fd17f 100644 --- a/src/core/reap.h +++ b/src/core/reap.h @@ -1,5 +1,5 @@ // -// Copyright 2020 Staysail Systems, Inc. +// Copyright 2024 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -56,8 +56,9 @@ struct nni_reap_list { extern void nni_reap(nni_reap_list *, void *); -// nni_reap_drain waits for the reap queue to be drained. -extern void nni_reap_drain(void); +// nni_reap_sys_drain waits for the reap queue to be drained. +// It returns true if it found anything to wait for. +extern bool nni_reap_sys_drain(void); extern int nni_reap_sys_init(void); extern void nni_reap_sys_fini(void); -- cgit v1.2.3-70-g09d2