Commit c21dd8d6 authored by Luca Boccassi's avatar Luca Boccassi

Problem: socket_base_t initialization reorder

Solution: initialize class variable in the same order as they are
defined.
parent acbf021a
...@@ -184,6 +184,8 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool ...@@ -184,6 +184,8 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool
tag (0xbaddecaf), tag (0xbaddecaf),
ctx_terminated (false), ctx_terminated (false),
destroyed (false), destroyed (false),
poller(nullptr),
handle(NULL),
last_tsc (0), last_tsc (0),
ticks (0), ticks (0),
rcvmore (false), rcvmore (false),
...@@ -191,8 +193,6 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool ...@@ -191,8 +193,6 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool
monitor_socket (NULL), monitor_socket (NULL),
monitor_events (0), monitor_events (0),
thread_safe (thread_safe_), thread_safe (thread_safe_),
poller(nullptr),
handle(NULL),
reaper_signaler (NULL) reaper_signaler (NULL)
{ {
options.socket_id = sid_; options.socket_id = sid_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment