Add static SetNameForCurrent for setting name of non-wxThreads

Co-authored-by: PB <PBforDev@gmail.com>
This commit is contained in:
Lauri Nurmi
2021-11-02 19:53:29 +02:00
parent fc756d06a6
commit aace36b17f
4 changed files with 26 additions and 0 deletions

View File

@@ -1407,6 +1407,18 @@ protected:
@since 3.1.6
*/
bool SetName(const wxString &name);
/**
Sets an internal name for the current thread, which may be a wxThread
or any other kind of thread; e.g. an std::thread.
@return Either:
- @false: Failure or missing implementation for this OS.
- @true: Success or undetectable failure.
@since 3.1.6
*/
static bool SetNameForCurrent(const wxString &name);
};