git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4714
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// creating thread
// -----------------------------------------------------------------------------
// creating thread
// -----------------------------------------------------------------------------
+wxThread::wxThread(wxThreadKind kind)
{
// add this thread to the global list of all threads
gs_allThreads.Add(this);
p_internal = new wxThreadInternal();
{
// add this thread to the global list of all threads
gs_allThreads.Add(this);
p_internal = new wxThreadInternal();
+
+ m_isDetached = kind == wxTHREAD_DETACHED;
}
wxThreadError wxThread::Create()
}
wxThreadError wxThread::Create()
return p_internal->GetPriority();
}
return p_internal->GetPriority();
}
-unsigned long wxThread::GetID() const
+unsigned long wxThread::GetId() const
{
return (unsigned long)p_internal->GetId();
}
{
return (unsigned long)p_internal->GetId();
}
// wait until the thread stops
p_internal->Wait();
}
// wait until the thread stops
p_internal->Wait();
}
- //GL: As we must auto-destroy, the destruction must happen here.
- delete this;
+ return wxTHREAD_NO_ERROR;
}
wxThreadError wxThread::Kill()
}
wxThreadError wxThread::Kill()