diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:08:43 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:08:43 +0900 |
commit | 1e01248efc113cc9389f795157400a634730823e (patch) | |
tree | 5b321c0540001b6c1f7eab659e4cefec67dfcf96 /src/socket_base.hpp | |
parent | a55458399f9e54f8384eda174d405ee85d490c45 (diff) |
XS_CTX_REENTRANT option added
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/socket_base.hpp')
-rw-r--r-- | src/socket_base.hpp | 4 |
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; |