common: initialize scalar field of pxThread

CID 147022

v2: initialize all member in initializer list
This commit is contained in:
Gregory Hainaut 2016-03-28 14:38:30 +02:00
parent 37de84d55f
commit 791a0ce702
1 changed files with 5 additions and 5 deletions

View File

@ -172,12 +172,12 @@ void Threading::pxThread::_pt_callback_cleanup( void* handle )
Threading::pxThread::pxThread( const wxString& name )
: m_name( name )
, m_thread()
, m_native_id(0)
, m_native_handle(0)
, m_detached(true) // start out with m_thread in detached/invalid state
, m_running(false)
{
m_detached = true; // start out with m_thread in detached/invalid state
m_running = false;
m_native_id = 0;
m_native_handle = 0;
}
// This destructor performs basic "last chance" cleanup, which is a blocking join