summaryrefslogtreecommitdiff
path: root/src/socket_base.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket_base.hpp')
-rw-r--r--src/socket_base.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socket_base.hpp b/src/socket_base.hpp
index 1e35ffa..850586e 100644
--- a/src/socket_base.hpp
+++ b/src/socket_base.hpp
@@ -141,6 +141,10 @@ namespace xs
// Used to check whether the object is a socket.
uint32_t tag;
+ // Synchronisation of access to the socket. If Crossroads are running
+ // in non-reentrant mode, it is a dummy mutex-like object.
+ mutex_t sync;
+
// If true, associated context was already terminated.
bool ctx_terminated;