From 061d0df60624bdcef571188fd7c7ecdcadf520eb Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:01:02 +0900 Subject: Socket ID added Signed-off-by: Martin Sustrik --- src/ctx.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ctx.hpp') 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&); }; -- cgit v1.2.3