added GetKind getter

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi 2008-11-26 16:40:14 +00:00
parent 2b4367d520
commit 5159e01481
2 changed files with 10 additions and 0 deletions

View 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

View 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.