aboutsummaryrefslogtreecommitdiff
path: root/src/core/endpt.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-06-06 09:10:07 -0700
committerGarrett D'Amore <garrett@damore.org>2017-06-06 09:10:07 -0700
commit4771d04fb589c406ff8b2fc1b4edf93b2df42515 (patch)
tree4d98c382b90f67eb158e613d6d0819201c6ed616 /src/core/endpt.h
parent46a559cbdff02d8f9ca48bd918c17c33336de3a1 (diff)
downloadnng-4771d04fb589c406ff8b2fc1b4edf93b2df42515.tar.gz
nng-4771d04fb589c406ff8b2fc1b4edf93b2df42515.tar.bz2
nng-4771d04fb589c406ff8b2fc1b4edf93b2df42515.zip
Endpoint now holds a reference on the socket.
Diffstat (limited to 'src/core/endpt.h')
-rw-r--r--src/core/endpt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/endpt.h b/src/core/endpt.h
index 0dc0433d..a9029cc9 100644
--- a/src/core/endpt.h
+++ b/src/core/endpt.h
@@ -30,6 +30,7 @@ struct nni_ep {
int ep_mode;
int ep_close; // full shutdown
int ep_bound; // true if we bound locally
+ nni_mtx ep_mtx;
nni_cv ep_cv;
nni_pipe * ep_pipe; // Connected pipe (dialers only)
};