diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-07 10:03:30 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-07 11:20:14 -0800 |
| commit | 8fa3b2aa8e9191669f137be39ba61ad39243483a (patch) | |
| tree | 8c9e39ab5bbcce38a1bbe78a2badb1145e481aae /src/core/aio.h | |
| parent | a02b1c7040c77f2549bfee16af36688f6b20ae63 (diff) | |
| download | nng-8fa3b2aa8e9191669f137be39ba61ad39243483a.tar.gz nng-8fa3b2aa8e9191669f137be39ba61ad39243483a.tar.bz2 nng-8fa3b2aa8e9191669f137be39ba61ad39243483a.zip | |
aio: separate stop / shutdown from fini (deallocate)
Probably other subsystems should get the same treatment. We need
to basically start the process of shutting down so that subsystems
know to cease operation before we rip memory out from underneath them.
This ensures that no new operations can be started as well, once we
have begun the process of teardown.
We also enhanced the completion of sleep to avoid some extra locking
contention, since the expiration *is* the completion.
Includes a test for this case.
Diffstat (limited to 'src/core/aio.h')
| -rw-r--r-- | src/core/aio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/aio.h b/src/core/aio.h index 50cb266b..f8c6730f 100644 --- a/src/core/aio.h +++ b/src/core/aio.h @@ -193,6 +193,7 @@ extern void nni_aio_completions_add( nni_aio_completions *, nni_aio *, int, size_t); extern int nni_aio_sys_init(nng_init_params *); +extern void nni_aio_sys_stop(void); extern void nni_aio_sys_fini(void); typedef struct nni_aio_expire_q nni_aio_expire_q; |
