From 2fbfd7e5c3ad245de2c905720eb8d9d5b27b6739 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 27 Dec 2021 23:10:29 -0800 Subject: Introduce nng_device_aio(). This function is like nng_device(), but runs asynchronously. Also, this fixes #1503 nng_device causes nng_close to blocking --- src/core/socket.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/socket.h') diff --git a/src/core/socket.h b/src/core/socket.h index beebfbce..c4037e96 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -12,6 +12,7 @@ #define CORE_SOCKET_H extern int nni_sock_find(nni_sock **, uint32_t); +extern void nni_sock_hold(nni_sock *); extern void nni_sock_rele(nni_sock *); extern int nni_sock_open(nni_sock **, const nni_proto *); extern void nni_sock_close(nni_sock *); -- cgit v1.2.3-70-g09d2