mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-23 08:31:46 +02:00
Problem: socket_base_t initialization reorder
Solution: initialize class variable in the same order as they are defined.
This commit is contained in:
@@ -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
|
|||||||
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_;
|
||||||
|
Reference in New Issue
Block a user