From 921da22147e201455837bcd38df1af33aceff26f Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 13 Mar 2012 11:10:33 +0100 Subject: io_threads argument removed from xs_init() The argument was changed to a context option (XS_IO_THREADS). 0MQ compatibility mode sets the option and ensures that there's at least one I/O thread present. Signed-off-by: Martin Sustrik --- src/ctx.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/ctx.hpp') diff --git a/src/ctx.hpp b/src/ctx.hpp index df315e4..b83fa1f 100644 --- a/src/ctx.hpp +++ b/src/ctx.hpp @@ -31,7 +31,6 @@ #include "array.hpp" #include "config.hpp" #include "mutex.hpp" -#include "stdint.hpp" #include "options.hpp" #include "atomic_counter.hpp" @@ -60,9 +59,8 @@ namespace xs { public: - // Create the context object. The argument specifies the size - // of I/O thread pool to create. - ctx_t (uint32_t io_threads_); + // Create the context object. + ctx_t (); // Returns false if object is not a context. bool check_tag (); @@ -171,7 +169,7 @@ namespace xs int max_sockets; // Number of I/O threads to launch. - uint32_t io_thread_count; + int io_thread_count; // Synchronisation of access to context options. mutex_t opt_sync; -- cgit v1.2.3