From 382b4cff3abd5ccb282ba420ef1f7c7d171ec91a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 4 Jan 2020 10:24:05 -0800 Subject: fixes #1105 pollable can be inlined, and use atomics This also introduces an nni_atomic_cas64 to help with lock-free designs. Some mechanical renaming was done in some of the protocols for spelling. --- src/protocol/pubsub0/pub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/protocol/pubsub0/pub.c') diff --git a/src/protocol/pubsub0/pub.c b/src/protocol/pubsub0/pub.c index 22195c52..a42e95ff 100644 --- a/src/protocol/pubsub0/pub.c +++ b/src/protocol/pubsub0/pub.c @@ -289,7 +289,7 @@ pub0_sock_get_sendfd(void *arg, void *buf, size_t *szp, nni_type t) int fd; int rv; nni_mtx_lock(&sock->mtx); - // PUB sockets are *always* sendable. + // PUB sockets are *always* writable. nni_pollable_raise(sock->sendable); rv = nni_pollable_getfd(sock->sendable, &fd); nni_mtx_unlock(&sock->mtx); -- cgit v1.2.3-70-g09d2