Fix compile.

This commit is contained in:
Steve Checkoway
2004-06-11 07:39:53 +00:00
parent 4c74f84447
commit 59d82961b9
@@ -74,7 +74,7 @@ ThreadImpl *MakeThisThread()
#endif #endif
#if defined(DARWIN) #if defined(DARWIN)
MachThreadHandle = mach_thread_self(); thread->MachThreadHandle = mach_thread_self();
#endif #endif
return thread; return thread;
@@ -89,7 +89,7 @@ static void *StartThread( void *pData )
#endif #endif
#if defined(DARWIN) #if defined(DARWIN)
MachThreadHandle = mach_thread_self(); pThis->MachThreadHandle = mach_thread_self();
#endif #endif
return (void *) pThis->m_pFunc( pThis->m_pData ); return (void *) pThis->m_pFunc( pThis->m_pData );
@@ -128,7 +128,7 @@ MutexImpl_Pthreads::~MutexImpl_Pthreads()
bool MutexImpl_Pthreads::Lock() bool MutexImpl_Pthreads::Lock()
{ {
if( LockedBy == (uint64_t) GetCurrentThreadId() ) if( LockedBy == (uint64_t) GetThisThreadId() )
{ {
++LockCnt; ++LockCnt;
return true; return true;
@@ -171,7 +171,7 @@ bool MutexImpl_Pthreads::Lock()
int ret = pthread_mutex_lock( &mutex ); int ret = pthread_mutex_lock( &mutex );
if( ret ) if( ret )
RageException::Throw( "pthread_mutex_lock failed: %s", strerror(ret) ); RageException::Throw( "pthread_mutex_lock failed: %s", strerror(ret) );
LockedBy = GetCurrentThreadId(); LockedBy = GetThisThreadId();
return true; return true;
#endif #endif
} }