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.