summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-02-01 00:14:40 -0200
committerGravatar Yuri Kunde Schlesner2015-02-02 15:37:09 -0200
commit88a4a808c688eeabb136e9b45223a0e9c95896bc (patch)
treec4181a69ff882e1af1b7d65bf3596a6cb3dd88b9 /src/core/hle/kernel/thread.cpp
parentKernel: Make WaitObjects share ownership of Threads waiting on them (diff)
downloadyuzu-88a4a808c688eeabb136e9b45223a0e9c95896bc.tar.gz
yuzu-88a4a808c688eeabb136e9b45223a0e9c95896bc.tar.xz
yuzu-88a4a808c688eeabb136e9b45223a0e9c95896bc.zip
Kernel: Stop creating useless Handles during object creation
They're finally unnecessary, and will stop cluttering the application's handle table.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index f092916dd..3987f9608 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -368,14 +368,6 @@ ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point,
368 368
369 SharedPtr<Thread> thread(new Thread); 369 SharedPtr<Thread> thread(new Thread);
370 370
371 // TODO(yuriks): Thread requires a handle to be inserted into the various scheduling queues for
372 // the time being. Create a handle here, it will be copied to the handle field in
373 // the object and use by the rest of the code. This should be removed when other
374 // code doesn't rely on the handle anymore.
375 ResultVal<Handle> handle = Kernel::g_handle_table.Create(thread);
376 if (handle.Failed())
377 return handle.Code();
378
379 thread_list.push_back(thread); 371 thread_list.push_back(thread);
380 thread_ready_queue.prepare(priority); 372 thread_ready_queue.prepare(priority);
381 373