Add wxThread::MSWGetHandle().

Under MSW a thread has both an ID, returned by wxThread::GetId(), and a
handle, which couldn't be retrieved so far. Add an accessor to do it.

Closes #16170.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-04-27 22:41:50 +00:00
parent 2b7c7464ad
commit ccaebf6520
4 changed files with 22 additions and 0 deletions

View File

@@ -1226,6 +1226,13 @@ unsigned long wxThread::GetId() const
return (unsigned long)m_internal->GetId();
}
WXHANDLE wxThread::MSWGetHandle() const
{
wxCriticalSectionLocker lock(const_cast<wxCriticalSection &>(m_critsect));
return m_internal->GetHandle();
}
bool wxThread::IsRunning() const
{
wxCriticalSectionLocker lock(const_cast<wxCriticalSection &>(m_critsect));