diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/init.c | 2 | ||||
| -rw-r--r-- | src/nng_compat.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/core/init.c b/src/core/init.c index c2fe3aff..0b65013a 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -64,6 +64,8 @@ nni_init(void) void nni_fini(void) { + // XXX: We should make sure that underlying sockets and + // file descriptors are closed. Details TBD. nni_tran_sys_fini(); nni_ep_sys_fini(); nni_sock_sys_fini(); diff --git a/src/nng_compat.c b/src/nng_compat.c index ee52a074..41995dd9 100644 --- a/src/nng_compat.c +++ b/src/nng_compat.c @@ -741,7 +741,8 @@ nn_device(int s1, int s2) } -// You should not use this function if you can help it. +// nn_term is suitable only for shutting down the entire library, +// and is not thread-safe with other functions. void nn_term(void) { |
