diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-05-17 12:54:01 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-05-17 19:29:37 -0700 |
| commit | 70d478f5d185e147ca8d3dcba4cbd8bb6da3719a (patch) | |
| tree | 443e3b0e81138d7c195660d45eca7d4d497af8ac /src/nng.c | |
| parent | e490aa3353f05e158a0f1f485f371cd49e70b4f5 (diff) | |
| download | nng-70d478f5d185e147ca8d3dcba4cbd8bb6da3719a.tar.gz nng-70d478f5d185e147ca8d3dcba4cbd8bb6da3719a.tar.bz2 nng-70d478f5d185e147ca8d3dcba4cbd8bb6da3719a.zip | |
fixes #449 Want more flexible pipe events
This changes the signature of nng_pipe_notify(), and the associated
events. The documentation is updated to reflect this.
We have also broken the lock up so that we don't hold the master
socket lock for some of these things, which may have beneficial
impact on performance.
Diffstat (limited to 'src/nng.c')
| -rw-r--r-- | src/nng.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1015,7 +1015,7 @@ nng_getopt_string(nng_socket s, const char *name, char **valp) } int -nng_pipe_notify(nng_socket s, nng_pipe_cb cb, void *arg) +nng_pipe_notify(nng_socket s, int ev, nng_pipe_cb cb, void *arg) { int rv; nni_sock *sock; @@ -1027,7 +1027,7 @@ nng_pipe_notify(nng_socket s, nng_pipe_cb cb, void *arg) return (rv); } - nni_sock_set_pipe_cb(sock, cb, arg); + nni_sock_set_pipe_cb(sock, ev, cb, arg); nni_sock_rele(sock); return (0); } |
