From fe3c9705072ac8cafecdf2ea6bca4c26f9464824 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 28 Jun 2017 23:07:28 -0700 Subject: Refactor stop again, closing numerous races (thanks valgrind!) --- src/core/socket.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/core/socket.h') diff --git a/src/core/socket.h b/src/core/socket.h index 7d5e0f20..928264d9 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -88,16 +88,7 @@ extern void nni_sock_unnotify(nni_sock *, nni_notify *); extern int nni_sock_ep_add(nni_sock *, nni_ep *); extern void nni_sock_ep_remove(nni_sock *, nni_ep *); -// nni_sock_pipe_add is called by the pipe to register the pipe with -// with the socket. The pipe is added to the idle list. The protocol -// private pipe data is initialized as well. -extern int nni_sock_pipe_add(nni_sock *, nni_pipe *); - -// nni_sock_pipe_remove is called by the pipe when the protocol is -// done with it. This is the sockets indication that it should be -// removed, and freed. The protocol MUST guarantee that the pipe is -// no longer in use when this function is called. -extern void nni_sock_pipe_remove(nni_sock *, nni_pipe *); +extern void nni_sock_pipe_stop(nni_sock *, nni_pipe *); // nni_sock_pipe_ready lets the socket know the pipe is ready for // business. This also calls the socket/protocol specific add function, -- cgit v1.2.3-70-g09d2