diff options
| author | 2017-06-20 22:04:09 -0700 | |
|---|---|---|
| committer | 2017-06-20 22:04:09 -0700 | |
| commit | b21dfbb2956698b05104bc68c0b08ade0d671fd8 (patch) | |
| tree | 2f39f319f1391d4be12e50d1504c2bfc06b35cc2 /src/core/hle/kernel/thread.cpp | |
| parent | Merge pull request #2779 from Subv/uds_more2 (diff) | |
| parent | ResultVal: Remove MoveFrom() (diff) | |
| download | yuzu-b21dfbb2956698b05104bc68c0b08ade0d671fd8.tar.gz yuzu-b21dfbb2956698b05104bc68c0b08ade0d671fd8.tar.xz yuzu-b21dfbb2956698b05104bc68c0b08ade0d671fd8.zip | |
Merge pull request #2790 from yuriks/remove-movefrom
Remove ResultVal::MoveFrom
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 75ce626f8..f5f2eb2f7 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -389,7 +389,7 @@ ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point, | |||
| 389 | thread->wait_objects.clear(); | 389 | thread->wait_objects.clear(); |
| 390 | thread->wait_address = 0; | 390 | thread->wait_address = 0; |
| 391 | thread->name = std::move(name); | 391 | thread->name = std::move(name); |
| 392 | thread->callback_handle = wakeup_callback_handle_table.Create(thread).MoveFrom(); | 392 | thread->callback_handle = wakeup_callback_handle_table.Create(thread).Unwrap(); |
| 393 | thread->owner_process = g_current_process; | 393 | thread->owner_process = g_current_process; |
| 394 | 394 | ||
| 395 | // Find the next available TLS index, and mark it as used | 395 | // Find the next available TLS index, and mark it as used |
| @@ -484,7 +484,7 @@ SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority) { | |||
| 484 | auto thread_res = Thread::Create("main", entry_point, priority, 0, THREADPROCESSORID_0, | 484 | auto thread_res = Thread::Create("main", entry_point, priority, 0, THREADPROCESSORID_0, |
| 485 | Memory::HEAP_VADDR_END); | 485 | Memory::HEAP_VADDR_END); |
| 486 | 486 | ||
| 487 | SharedPtr<Thread> thread = thread_res.MoveFrom(); | 487 | SharedPtr<Thread> thread = std::move(thread_res).Unwrap(); |
| 488 | 488 | ||
| 489 | thread->context.fpscr = | 489 | thread->context.fpscr = |
| 490 | FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO | FPSCR_IXC; // 0x03C00010 | 490 | FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO | FPSCR_IXC; // 0x03C00010 |