summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-05-19 23:56:33 +0200
committerSubv <subv2112@gmail.com>2018-05-19 23:56:33 +0200
commitfab3dd98fec042e9c6a7ccfbd549ea2d6c41cfae (patch)
treeba6d1b5393edb16be0666d6eee02bac23ca4c050 /src/core
parentMerge pull request #436 from bunnei/multi-core (diff)
downloadyuzu-fab3dd98fec042e9c6a7ccfbd549ea2d6c41cfae.tar
yuzu-fab3dd98fec042e9c6a7ccfbd549ea2d6c41cfae.tar.gz
yuzu-fab3dd98fec042e9c6a7ccfbd549ea2d6c41cfae.tar.bz2
yuzu-fab3dd98fec042e9c6a7ccfbd549ea2d6c41cfae.tar.lz
yuzu-fab3dd98fec042e9c6a7ccfbd549ea2d6c41cfae.tar.xz
yuzu-fab3dd98fec042e9c6a7ccfbd549ea2d6c41cfae.tar.zst
yuzu-fab3dd98fec042e9c6a7ccfbd549ea2d6c41cfae.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/svc.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 1ae530c90..1eb1b8fbf 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -145,36 +145,6 @@ static bool DefaultThreadWakeupCallback(ThreadWakeupReason reason, SharedPtr<Thr
return true;
};
-/// Wait for a kernel object to synchronize, timeout after the specified nanoseconds
-static ResultCode WaitSynchronization1(
- SharedPtr<WaitObject> object, Thread* thread, s64 nano_seconds = -1,
- std::function<Thread::WakeupCallback> wakeup_callback = DefaultThreadWakeupCallback) {
-
- if (!object) {
- return ERR_INVALID_HANDLE;
- }
-
- if (object->ShouldWait(thread)) {
- if (nano_seconds == 0) {
- return RESULT_TIMEOUT;
- }
-
- thread->wait_objects = {object};
- object->AddWaitingThread(thread);
- thread->status = THREADSTATUS_WAIT_SYNCH_ANY;
-
- // Create an event to wake the thread up after the specified nanosecond delay has passed
- thread->WakeAfterDelay(nano_seconds);
- thread->wakeup_callback = wakeup_callback;
-
- Core::System::GetInstance().PrepareReschedule();
- } else {
- object->Acquire(thread);
- }
-
- return RESULT_SUCCESS;
-}
-
/// Wait for the given handles to synchronize, timeout after the specified nanoseconds
static ResultCode WaitSynchronization(Handle* index, VAddr handles_address, u64 handle_count,
s64 nano_seconds) {