X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/414c639cc20a68e7021019dbbcecfd39210fb10a..a83e14751f3b4bb86da3ac2edea09c7f78f3ca3e:/include/wx/thread.h diff --git a/include/wx/thread.h b/include/wx/thread.h index f80aa89bf5..72c708e51f 100644 --- a/include/wx/thread.h +++ b/include/wx/thread.h @@ -286,6 +286,16 @@ public: // Returns -1 if unknown, number of CPUs otherwise static int GetCPUCount(); + // Get the platform specific thread ID and return as a long. This + // can be used to uniquely identify threads, even if they are not + // wxThreads. This is used by wxPython. + // On VMS thread pointers are 64 bits (also needed for other systems??? +#ifdef __VMS + static unsigned long long GetCurrentId(); +#else + static unsigned long GetCurrentId(); +#endif + // sets the concurrency level: this is, roughly, the number of threads // the system tries to schedule to run in parallel. 0 means the // default value (usually acceptable, but may not yield the best @@ -376,7 +386,7 @@ public: #else unsigned long GetId() const; #endif - + // called when the thread exits - in the context of this thread // // NB: this function will not be called if the thread is Kill()ed