From ec2574b09a746709f15d2a3f5de135e29f4bcb52 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 8 Jan 2017 11:18:16 -0800 Subject: Move to generic socket & pipe workers, and up to 4 each. This should eliminate all need for protocols to do their own thread management tasks. --- src/protocol/pair/pair.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/protocol/pair') diff --git a/src/protocol/pair/pair.c b/src/protocol/pair/pair.c index 51608e07..ec6709ac 100644 --- a/src/protocol/pair/pair.c +++ b/src/protocol/pair/pair.c @@ -200,20 +200,15 @@ static nni_proto_pipe_ops nni_pair_pipe_ops = { .pipe_fini = nni_pair_pipe_fini, .pipe_add = nni_pair_pipe_add, .pipe_rem = nni_pair_pipe_rem, - .pipe_send = nni_pair_pipe_send, - .pipe_recv = nni_pair_pipe_recv, + .pipe_worker = { nni_pair_pipe_send, + nni_pair_pipe_recv }, }; static nni_proto_sock_ops nni_pair_sock_ops = { .sock_init = nni_pair_sock_init, .sock_fini = nni_pair_sock_fini, - .sock_close = NULL, .sock_setopt = nni_pair_sock_setopt, .sock_getopt = nni_pair_sock_getopt, - .sock_rfilter = NULL, - .sock_sfilter = NULL, - .sock_send = NULL, - .sock_recv = NULL, }; nni_proto nni_pair_proto = { -- cgit v1.2.3-70-g09d2