Update thread ids for 64bit support.

This commit is contained in:
Jeff Hutchinson 2021-08-29 20:34:57 -04:00
parent 0287f7717b
commit 633bc040d0
5 changed files with 26 additions and 26 deletions

View file

@ -134,9 +134,9 @@ bool Thread::isAlive()
return ( !mData->mDead );
}
U32 Thread::getId()
dsize_t Thread::getId()
{
return (U32)mData->mThreadID;
return (dsize_t)mData->mThreadID;
}
void Thread::_setName( const char* )
@ -145,12 +145,12 @@ void Thread::_setName( const char* )
// that one thread you are looking for is just so much fun.
}
U32 ThreadManager::getCurrentThreadId()
dsize_t ThreadManager::getCurrentThreadId()
{
return (U32)SDL_ThreadID();
return (dsize_t)SDL_ThreadID();
}
bool ThreadManager::compare(U32 threadId_1, U32 threadId_2)
bool ThreadManager::compare(dsize_t threadId_1, dsize_t threadId_2)
{
return (threadId_1 == threadId_2);
}