]> git.saurik.com Git - wxWidgets.git/commitdiff
added GetKind getter
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 26 Nov 2008 16:40:14 +0000 (16:40 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 26 Nov 2008 16:40:14 +0000 (16:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/thread.h
interface/wx/thread.h

index a8346d20e096842ca2d420e9504d3b317e9fb688..f9751d23c15a2e17412b9cc67c6c4f7ba227d8fa 100644 (file)
@@ -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
index 050e253525baa9156183633b982c2b58be76c80e..c454f8e92513ed178d48d7d556a29be43b5b3d8f 100644 (file)
@@ -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.