XThread: Only need to retain a pointer to our object - not a handle.

This commit is contained in:
Dr. Chat 2015-12-14 15:17:43 -06:00 committed by Ben Vanik
parent 621d3f8abb
commit a5c22ec214
1 changed files with 0 additions and 2 deletions

View File

@ -359,7 +359,6 @@ X_STATUS XThread::Create() {
// Always retain when starting - the thread owns itself until exited.
Retain();
RetainHandle();
xe::threading::Thread::CreationParameters params;
params.stack_size = 16 * 1024 * 1024; // Allocate a big host stack.
@ -1195,7 +1194,6 @@ object_ref<XThread> XThread::Restore(KernelState* kernel_state,
// Always retain when starting - the thread owns itself until exited.
thread->Retain();
thread->RetainHandle();
xe::threading::Thread::CreationParameters params;
params.create_suspended = true; // Not done restoring yet.