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