wxThread::GetCurrentId for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -522,6 +522,13 @@ int wxThread::GetCPUCount()
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned long wxThread::GetCurrentId()
|
||||||
|
{
|
||||||
|
ThreadID current ;
|
||||||
|
MacGetCurrentThread( ¤t ) ;
|
||||||
|
return (unsigned long)current;
|
||||||
|
}
|
||||||
|
|
||||||
bool wxThread::SetConcurrency(size_t level)
|
bool wxThread::SetConcurrency(size_t level)
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( IsMain(), _T("should only be called from the main thread") );
|
wxASSERT_MSG( IsMain(), _T("should only be called from the main thread") );
|
||||||
|
@@ -522,6 +522,13 @@ int wxThread::GetCPUCount()
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned long wxThread::GetCurrentId()
|
||||||
|
{
|
||||||
|
ThreadID current ;
|
||||||
|
MacGetCurrentThread( ¤t ) ;
|
||||||
|
return (unsigned long)current;
|
||||||
|
}
|
||||||
|
|
||||||
bool wxThread::SetConcurrency(size_t level)
|
bool wxThread::SetConcurrency(size_t level)
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( IsMain(), _T("should only be called from the main thread") );
|
wxASSERT_MSG( IsMain(), _T("should only be called from the main thread") );
|
||||||
|
Reference in New Issue
Block a user