X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/848f8788e91fade2e93c22df2e22d36750fab2aa..d6416655c7756e809ec4b94fbfc4d2df7cc3c4c6:/interface/wx/thread.h diff --git a/interface/wx/thread.h b/interface/wx/thread.h index 050e253525..20d0f92a60 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. @@ -1051,17 +1058,6 @@ public: */ wxThreadError Kill(); - /** - Called when the thread exits. - - This function is called in the context of the thread associated with the - wxThread object, not in the context of the main thread. - This function will not be called if the thread was @ref Kill() killed. - - This function should never be called directly. - */ - virtual void OnExit(); - /** Suspends the thread. @@ -1220,6 +1216,19 @@ protected: OnExit() will be called just before exiting. */ void Exit(ExitCode exitcode = 0); + +private: + + /** + Called when the thread exits. + + This function is called in the context of the thread associated with the + wxThread object, not in the context of the main thread. + This function will not be called if the thread was @ref Kill() killed. + + This function should never be called directly. + */ + virtual void OnExit(); };