Use consistent thread names.
This commit is contained in:
@@ -252,7 +252,7 @@ static struct SetupMainThread
|
|||||||
{
|
{
|
||||||
LockMut(g_ThreadSlotsLock);
|
LockMut(g_ThreadSlotsLock);
|
||||||
int slot = FindEmptyThreadSlot();
|
int slot = FindEmptyThreadSlot();
|
||||||
strcpy( g_ThreadSlots[slot].name, "Main thread" );
|
strcpy( g_ThreadSlots[slot].name, "MainThread" );
|
||||||
sprintf( g_ThreadSlots[slot].ThreadFormattedOutput, "Thread: %s", g_ThreadSlots[slot].name );
|
sprintf( g_ThreadSlots[slot].ThreadFormattedOutput, "Thread: %s", g_ThreadSlots[slot].name );
|
||||||
g_ThreadSlots[slot].id = RageThread::GetCurrentThreadID();
|
g_ThreadSlots[slot].id = RageThread::GetCurrentThreadID();
|
||||||
g_ThreadSlots[slot].pImpl = MakeThisThread();
|
g_ThreadSlots[slot].pImpl = MakeThisThread();
|
||||||
|
|||||||
@@ -833,7 +833,7 @@ InputHandler_Carbon::InputHandler_Carbon() : mMasterPort(0), mSem("Input thread
|
|||||||
IOObjectRelease( iter );
|
IOObjectRelease( iter );
|
||||||
}
|
}
|
||||||
|
|
||||||
mInputThread.SetName( "Input thread." );
|
mInputThread.SetName( "InputThread" );
|
||||||
mInputThread.Create(InputHandler_Carbon::Run, this);
|
mInputThread.Create(InputHandler_Carbon::Run, this);
|
||||||
// Wait for the run loop to start before returning.
|
// Wait for the run loop to start before returning.
|
||||||
mSem.Wait();
|
mSem.Wait();
|
||||||
|
|||||||
Reference in New Issue
Block a user