wxThread::wxThread(wxThreadKind kind) { // add this thread to the global list of all threads gs_allThreads.Add(this); m_internal = new wxThreadInternal(); m_isDetached = kind == wxTHREAD_DETACHED; }
wxThread::wxThread(wxThreadKind kind) { // add this thread to the global list of all threads { wxMutexLocker lock(*gs_mutexAllThreads); gs_allThreads.Add(this); } m_internal = new wxThreadInternal(); m_isDetached = kind == wxTHREAD_DETACHED; }