Skip to content

Commit

Permalink
inproc: add pipe stop.
Browse files Browse the repository at this point in the history
This is not needed for this, but it is the only transport that does
not have it, and adding it simplifies logic in the common code.
  • Loading branch information
gdamore committed Dec 7, 2024
1 parent f1e078b commit 8880e07
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/sp/transport/inproc/inproc.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2023 Staysail Systems, Inc. <[email protected]>
// Copyright 2024 Staysail Systems, Inc. <[email protected]>
// Copyright 2018 Capitar IT Group BV <[email protected]>
// Copyright 2018 Devolutions <[email protected]>
//
Expand Down Expand Up @@ -114,6 +114,12 @@ inproc_pipe_init(void *arg, nni_pipe *p)
return (0);
}

static void
inproc_pipe_stop(void *arg)
{
NNI_ARG_UNUSED(arg);
}

static void
inproc_pipe_fini(void *arg)
{
Expand Down Expand Up @@ -620,6 +626,7 @@ static nni_sp_pipe_ops inproc_pipe_ops = {
.p_send = inproc_pipe_send,
.p_recv = inproc_pipe_recv,
.p_close = inproc_pipe_close,
.p_stop = inproc_pipe_stop,
.p_peer = inproc_pipe_peer,
.p_getopt = inproc_pipe_getopt,
};
Expand Down

0 comments on commit 8880e07

Please sign in to comment.