This commit is contained in:
Glenn Maynard
2004-09-07 03:26:23 +00:00
parent 8f0c559ef4
commit 7f805dcc87
+1 -12
View File
@@ -105,16 +105,7 @@ ThreadImpl *MakeThisThread()
thread->ThreadId = GetCurrentThreadId();
int slot = GetOpenSlot( GetCurrentThreadId() );
ret = DuplicateHandle( CurProc, GetCurrentThread(), CurProc,
&g_ThreadHandles[slot], 0, false, DUPLICATE_SAME_ACCESS );
if( !ret )
{
// LOG->Warn( werr_ssprintf( GetLastError(), "DuplicateHandle(%p, %p) failed",
// CurProc, GetCurrentThread() ) );
g_ThreadHandles[slot] = NULL;
}
g_ThreadHandles[slot] = thread->ThreadHandle;
return thread;
}
@@ -134,8 +125,6 @@ ThreadImpl *MakeThread( int (*pFunc)(void *pData), void *pData, uint64_t *piThre
int slot = GetOpenSlot( thread->ThreadId );
g_ThreadHandles[slot] = thread->ThreadHandle;
/* XXX: pause the thread until we assign the above */
return thread;
}