Problem: new thread parameter not initialised in ctor

Solution: do it and remove ifndef windows
This commit is contained in:
Luca Boccassi 2019-02-17 18:59:06 +00:00
parent d02561eec0
commit f7ca7515d7

View File

@ -56,6 +56,7 @@ class thread_t
inline thread_t () :
_tfn (NULL),
_arg (NULL),
_name (""),
_started (false),
_thread_priority (ZMQ_THREAD_PRIORITY_DFLT),
_thread_sched_policy (ZMQ_THREAD_SCHED_POLICY_DFLT)
@ -100,9 +101,7 @@ class thread_t
void applySchedulingParameters ();
thread_fn *_tfn;
void *_arg;
#ifndef ZMQ_HAVE_WINDOWS
std::string _name;
#endif
private:
bool _started;