From 934c1316ae47754a2e368c65228c3cbfe552680f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 22 Dec 2016 15:23:21 -0800 Subject: Inline locks (fewer allocs), simpler absolute times for wakeups. nn_sock_recv. --- src/transport/inproc/inproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/transport') diff --git a/src/transport/inproc/inproc.c b/src/transport/inproc/inproc.c index cb79d65a..23046933 100644 --- a/src/transport/inproc/inproc.c +++ b/src/transport/inproc/inproc.c @@ -142,7 +142,7 @@ nni_inproc_pipe_send(void *arg, nni_msg *msg) // TODO: look at the message expiration and use that to set up // the timeout. (And if it expired already, throw it away.) - return (nni_msgqueue_put(pipe->wq, msg, -1)); + return (nni_msgqueue_put(pipe->wq, msg)); } @@ -151,7 +151,7 @@ nni_inproc_pipe_recv(void *arg, nni_msg **msgp) { nni_inproc_pipe *pipe = arg; - return (nni_msgqueue_get(pipe->rq, msgp, -1)); + return (nni_msgqueue_get(pipe->rq, msgp)); } -- cgit v1.2.3-70-g09d2