aboutsummaryrefslogtreecommitdiff
path: root/src/core/pollable.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-12-25 13:14:26 -0800
committerGarrett D'Amore <garrett@damore.org>2021-12-25 13:14:26 -0800
commit57e5c8bb2ee122c30fa14127c3b969dc858491c0 (patch)
tree7c95640e8360c3d67d6967791b24a16b00414a5d /src/core/pollable.h
parentbeb8eb05310ac945ede357e2e57152f0d71e38ed (diff)
downloadnng-57e5c8bb2ee122c30fa14127c3b969dc858491c0.tar.gz
nng-57e5c8bb2ee122c30fa14127c3b969dc858491c0.tar.bz2
nng-57e5c8bb2ee122c30fa14127c3b969dc858491c0.zip
Pollables can be completely inline.
This eliminates more failure paths, and brings us still closer to eliminating the possibility of failure during socket init.
Diffstat (limited to 'src/core/pollable.h')
-rw-r--r--src/core/pollable.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/pollable.h b/src/core/pollable.h
index a71a9693..2dcce0a1 100644
--- a/src/core/pollable.h
+++ b/src/core/pollable.h
@@ -1,5 +1,5 @@
//
-// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -15,15 +15,13 @@
typedef struct nni_pollable nni_pollable;
-extern int nni_pollable_alloc(nni_pollable **);
-extern void nni_pollable_free(nni_pollable *);
extern void nni_pollable_raise(nni_pollable *);
extern void nni_pollable_clear(nni_pollable *);
extern int nni_pollable_getfd(nni_pollable *, int *);
// nni_pollable implementation details are private. Only here for inlining.
-// We have joined to the write and read file descriptors into a a single
-// atomic 64 so we can update them together (and we can use cas to be sure
+// We have joined the write and read file descriptors into a single
+// atomic 64, so we can update them together (and we can use cas to be sure
// that such updates are always safe.)
struct nni_pollable {
nni_atomic_u64 p_fds;