From: Francesco Montorsi Date: Wed, 26 Nov 2008 16:40:14 +0000 (+0000) Subject: added GetKind getter X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5159e01481609101d7bf20b3e32457346e631df6 added GetKind getter git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/thread.h b/include/wx/thread.h index a8346d20e0..f9751d23c1 100644 --- a/include/wx/thread.h +++ b/include/wx/thread.h @@ -555,6 +555,9 @@ public: // identifies a thread inside a process wxThreadIdType GetId() const; + wxThreadKind GetKind() const + { return m_isDetached ? wxTHREAD_DETACHED : wxTHREAD_JOINABLE; } + // called when the thread exits - in the context of this thread // // NB: this function will not be called if the thread is Kill()ed diff --git a/interface/wx/thread.h b/interface/wx/thread.h index 050e253525..c454f8e925 100644 --- a/interface/wx/thread.h +++ b/interface/wx/thread.h @@ -983,6 +983,13 @@ public: */ wxThreadIdType GetId() const; + /** + Returns the thread kind as it was given in the ctor. + + @since 2.9.0 + */ + wxThreadKind GetKind() const; + /** Gets the priority of the thread, between zero and 100.