Added wxThread::GetCurrentId(), which returns an ID for the current
thread, even if it is not a wxThread. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -647,6 +647,11 @@ int wxThread::GetCPUCount()
|
||||
return si.dwNumberOfProcessors;
|
||||
}
|
||||
|
||||
unsigned long wxThread::GetCurrentId()
|
||||
{
|
||||
return (unsigned long)::GetCurrentThreadId();
|
||||
}
|
||||
|
||||
bool wxThread::SetConcurrency(size_t level)
|
||||
{
|
||||
wxASSERT_MSG( IsMain(), _T("should only be called from the main thread") );
|
||||
|
Reference in New Issue
Block a user