summaryrefslogtreecommitdiff
path: root/src/ctx.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:01:02 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:01:02 +0900
commit061d0df60624bdcef571188fd7c7ecdcadf520eb (patch)
tree65c44005624d3886e75556b2f69e62527a41b497 /src/ctx.hpp
parent6f32361fea61619fec94348de693a9e3ff8981e0 (diff)
Socket ID added
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/ctx.hpp')
-rw-r--r--src/ctx.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ctx.hpp b/src/ctx.hpp
index e09149d..bcffcd7 100644
--- a/src/ctx.hpp
+++ b/src/ctx.hpp
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2009-2011 250bpm s.r.o.
+ Copyright (c) 2009-2012 250bpm s.r.o.
Copyright (c) 2007-2009 iMatix Corporation
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
@@ -33,6 +33,7 @@
#include "mutex.hpp"
#include "stdint.hpp"
#include "options.hpp"
+#include "atomic_counter.hpp"
namespace zmq
{
@@ -151,6 +152,9 @@ namespace zmq
zmq::socket_base_t *log_socket;
mutex_t log_sync;
+ // Maximum socket ID.
+ static atomic_counter_t max_socket_id;
+
ctx_t (const ctx_t&);
const ctx_t &operator = (const ctx_t&);
};