Initialize all members in SystemThread c-tor
authorPavel Boyko <boyko@iitp.ru>
Wed, 10 Mar 2010 16:44:26 +0300
changeset 6149 fdf5d6cb1dba
parent 6148 bf5e05fe051b
child 6150 8e2c26f1f45d
child 6153 0c5b267cc89d
Initialize all members in SystemThread c-tor
src/core/unix-system-thread.cc
--- a/src/core/unix-system-thread.cc	Tue Mar 09 11:54:40 2010 +0300
+++ b/src/core/unix-system-thread.cc	Wed Mar 10 16:44:26 2010 +0300
@@ -62,7 +62,7 @@
 };
 
 SystemThreadImpl::SystemThreadImpl (Callback<void> callback)
-  : m_callback (callback)
+  : m_callback (callback), m_break (false)
 {
   NS_LOG_FUNCTION_NOARGS ();
   // Make sure we have a SIGALRM handler which does not terminate
@@ -141,7 +141,7 @@
 // class above.
 //
 SystemThread::SystemThread (Callback<void> callback) 
-  : m_impl (new SystemThreadImpl (callback))
+  : m_impl (new SystemThreadImpl (callback)), m_break (false)
 {
   NS_LOG_FUNCTION_NOARGS ();
 }