mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 00:46:05 +01:00
Problem: new thread parameter not initialised in ctor
Solution: do it and remove ifndef windows
This commit is contained in:
parent
d02561eec0
commit
f7ca7515d7
@ -56,6 +56,7 @@ class thread_t
|
|||||||
inline thread_t () :
|
inline thread_t () :
|
||||||
_tfn (NULL),
|
_tfn (NULL),
|
||||||
_arg (NULL),
|
_arg (NULL),
|
||||||
|
_name (""),
|
||||||
_started (false),
|
_started (false),
|
||||||
_thread_priority (ZMQ_THREAD_PRIORITY_DFLT),
|
_thread_priority (ZMQ_THREAD_PRIORITY_DFLT),
|
||||||
_thread_sched_policy (ZMQ_THREAD_SCHED_POLICY_DFLT)
|
_thread_sched_policy (ZMQ_THREAD_SCHED_POLICY_DFLT)
|
||||||
@ -100,9 +101,7 @@ class thread_t
|
|||||||
void applySchedulingParameters ();
|
void applySchedulingParameters ();
|
||||||
thread_fn *_tfn;
|
thread_fn *_tfn;
|
||||||
void *_arg;
|
void *_arg;
|
||||||
#ifndef ZMQ_HAVE_WINDOWS
|
|
||||||
std::string _name;
|
std::string _name;
|
||||||
#endif
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool _started;
|
bool _started;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user