diff options
| author | 2020-04-01 17:28:49 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:36:05 -0400 | |
| commit | 48fa3b7a0f2054a836b0a8061e6b082c246b5ae0 (patch) | |
| tree | 37a09cfb55f13ebf2df2b9a71622c599733100b0 /src/core/hle/kernel/thread.cpp | |
| parent | Kernel/svcBreak: Implement CacheInvalidation for Singlecore and correct svcBr... (diff) | |
| download | yuzu-48fa3b7a0f2054a836b0a8061e6b082c246b5ae0.tar.gz yuzu-48fa3b7a0f2054a836b0a8061e6b082c246b5ae0.tar.xz yuzu-48fa3b7a0f2054a836b0a8061e6b082c246b5ae0.zip | |
General: Cleanup legacy code.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index d88039a16..fba2a9c85 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -56,9 +56,6 @@ Thread::~Thread() = default; | |||
| 56 | void Thread::Stop() { | 56 | void Thread::Stop() { |
| 57 | { | 57 | { |
| 58 | SchedulerLock lock(kernel); | 58 | SchedulerLock lock(kernel); |
| 59 | // Cancel any outstanding wakeup events for this thread | ||
| 60 | Core::System::GetInstance().CoreTiming().UnscheduleEvent( | ||
| 61 | kernel.ThreadWakeupCallbackEventType(), global_handle); | ||
| 62 | SetStatus(ThreadStatus::Dead); | 59 | SetStatus(ThreadStatus::Dead); |
| 63 | Signal(); | 60 | Signal(); |
| 64 | kernel.GlobalHandleTable().Close(global_handle); | 61 | kernel.GlobalHandleTable().Close(global_handle); |
| @@ -75,22 +72,6 @@ void Thread::Stop() { | |||
| 75 | global_handle = 0; | 72 | global_handle = 0; |
| 76 | } | 73 | } |
| 77 | 74 | ||
| 78 | void Thread::WakeAfterDelay(s64 nanoseconds) { | ||
| 79 | // Don't schedule a wakeup if the thread wants to wait forever | ||
| 80 | if (nanoseconds == -1) | ||
| 81 | return; | ||
| 82 | |||
| 83 | // This function might be called from any thread so we have to be cautious and use the | ||
| 84 | // thread-safe version of ScheduleEvent. | ||
| 85 | Core::System::GetInstance().CoreTiming().ScheduleEvent( | ||
| 86 | nanoseconds, kernel.ThreadWakeupCallbackEventType(), global_handle); | ||
| 87 | } | ||
| 88 | |||
| 89 | void Thread::CancelWakeupTimer() { | ||
| 90 | Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(), | ||
| 91 | global_handle); | ||
| 92 | } | ||
| 93 | |||
| 94 | void Thread::ResumeFromWait() { | 75 | void Thread::ResumeFromWait() { |
| 95 | SchedulerLock lock(kernel); | 76 | SchedulerLock lock(kernel); |
| 96 | switch (status) { | 77 | switch (status) { |
| @@ -284,14 +265,6 @@ void Thread::SetPriority(u32 priority) { | |||
| 284 | UpdatePriority(); | 265 | UpdatePriority(); |
| 285 | } | 266 | } |
| 286 | 267 | ||
| 287 | void Thread::SetWaitSynchronizationResult(ResultCode result) { | ||
| 288 | UNREACHABLE(); | ||
| 289 | } | ||
| 290 | |||
| 291 | void Thread::SetWaitSynchronizationOutput(s32 output) { | ||
| 292 | UNREACHABLE(); | ||
| 293 | } | ||
| 294 | |||
| 295 | void Thread::SetSynchronizationResults(SynchronizationObject* object, ResultCode result) { | 268 | void Thread::SetSynchronizationResults(SynchronizationObject* object, ResultCode result) { |
| 296 | signaling_object = object; | 269 | signaling_object = object; |
| 297 | signaling_result = result; | 270 | signaling_result = result; |
| @@ -425,13 +398,6 @@ bool Thread::AllSynchronizationObjectsReady() const { | |||
| 425 | }); | 398 | }); |
| 426 | } | 399 | } |
| 427 | 400 | ||
| 428 | bool Thread::InvokeWakeupCallback(ThreadWakeupReason reason, std::shared_ptr<Thread> thread, | ||
| 429 | std::shared_ptr<SynchronizationObject> object, | ||
| 430 | std::size_t index) { | ||
| 431 | ASSERT(wakeup_callback); | ||
| 432 | return wakeup_callback(reason, std::move(thread), std::move(object), index); | ||
| 433 | } | ||
| 434 | |||
| 435 | bool Thread::InvokeHLECallback(std::shared_ptr<Thread> thread) { | 401 | bool Thread::InvokeHLECallback(std::shared_ptr<Thread> thread) { |
| 436 | ASSERT(hle_callback); | 402 | ASSERT(hle_callback); |
| 437 | return hle_callback(std::move(thread)); | 403 | return hle_callback(std::move(thread)); |