git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57005
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// destructor deletes m_thread
virtual ~wxThreadHelper() { KillThread(); }
// destructor deletes m_thread
virtual ~wxThreadHelper() { KillThread(); }
+#if WXWIN_COMPATIBILITY_2_8
+ wxDEPRECATED( wxThreadError Create(unsigned int stackSize = 0) );
+#endif
+
// create a new thread (and optionally set the stack size on platforms that
// support/need that), call Run() to start it
// create a new thread (and optionally set the stack size on platforms that
// support/need that), call Run() to start it
- wxThreadError Create(unsigned int stackSize = 0)
+ wxThreadError CreateThread(wxThreadKind kind = wxTHREAD_JOINABLE,
+ unsigned int stackSize = 0)
m_thread = new wxThreadHelperThread(*this, m_kind);
return m_thread->Create(stackSize);
m_thread = new wxThreadHelperThread(*this, m_kind);
return m_thread->Create(stackSize);
friend class wxThreadHelperThread;
};
friend class wxThreadHelperThread;
};
+#if WXWIN_COMPATIBILITY_2_8
+inline wxThreadError wxThreadHelper::Create(unsigned int stackSize)
+{ return CreateThread(m_kind, stackSize); }
+#endif
+
// call Entry() in owner, put it down here to avoid circular declarations
inline void *wxThreadHelperThread::Entry()
{
// call Entry() in owner, put it down here to avoid circular declarations
inline void *wxThreadHelperThread::Entry()
{