diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-10 14:39:21 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-10 14:39:21 -0800 |
| commit | c436e174d0ed8c5dc14af060e994b97a83df7750 (patch) | |
| tree | 9eeb7ef18ad6eb1a975ab6aaa7a68bcd3ee81c9a /src/transport | |
| parent | f5c259eec0cd3fa5cd623e159cbfec83b4a500d5 (diff) | |
| download | nng-c436e174d0ed8c5dc14af060e994b97a83df7750.tar.gz nng-c436e174d0ed8c5dc14af060e994b97a83df7750.tar.bz2 nng-c436e174d0ed8c5dc14af060e994b97a83df7750.zip | |
Start of close related race fixes. Scalability test.
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/inproc/inproc.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/transport/inproc/inproc.c b/src/transport/inproc/inproc.c index 0cc208d4..4e329d10 100644 --- a/src/transport/inproc/inproc.c +++ b/src/transport/inproc/inproc.c @@ -160,35 +160,6 @@ nni_inproc_pipe_aio_recv(void *arg, nni_aio *aio) } -static int -nni_inproc_pipe_send(void *arg, nni_msg *msg) -{ - nni_inproc_pipe *pipe = arg; - char *h; - size_t l; - - // We need to move any header data to the body, because the other - // side won't know what to do otherwise. - h = nni_msg_header(msg); - l = nni_msg_header_len(msg); - if (nni_msg_prepend(msg, h, l) != 0) { - nni_msg_free(msg); - return (0); // Pretend we sent it. - } - nni_msg_trunc_header(msg, l); - return (nni_msgq_put(pipe->wq, msg)); -} - - -static int -nni_inproc_pipe_recv(void *arg, nni_msg **msgp) -{ - nni_inproc_pipe *pipe = arg; - - return (nni_msgq_get(pipe->rq, msgp)); -} - - static uint16_t nni_inproc_pipe_peer(void *arg) { @@ -433,8 +404,6 @@ nni_inproc_ep_accept(void *arg, void **pipep) static nni_tran_pipe nni_inproc_pipe_ops = { .pipe_destroy = nni_inproc_pipe_destroy, - .pipe_send = nni_inproc_pipe_send, - .pipe_recv = nni_inproc_pipe_recv, .pipe_aio_send = nni_inproc_pipe_aio_send, .pipe_aio_recv = nni_inproc_pipe_aio_recv, .pipe_close = nni_inproc_pipe_close, |
