diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-18 04:23:49 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-22 01:10:24 +0100 |
commit | aa01c57ae9d73e41b65d37860ca6fbb91caba33a (patch) | |
tree | 904936860b1e8319ec5edc3a1e0e6c2c12f01d9f /src/core/hle/kernel/thread.cpp | |
parent | WaitSynchronizationN: Handle case where handles=nullptr. (diff) | |
download | yuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.tar yuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.tar.gz yuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.tar.bz2 yuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.tar.lz yuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.tar.xz yuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.tar.zst yuzu-aa01c57ae9d73e41b65d37860ca6fbb91caba33a.zip |
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 0c9ecc091..6b0bdebb5 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -22,7 +22,7 @@ namespace Kernel { -ResultVal<bool> Thread::WaitSynchronization(unsigned index) { +ResultVal<bool> Thread::Wait(unsigned index) { const bool wait = status != THREADSTATUS_DORMANT; if (wait) { AddWaitingThread(GetCurrentThread()); @@ -32,6 +32,10 @@ ResultVal<bool> Thread::WaitSynchronization(unsigned index) { return MakeResult<bool>(wait); } +ResultVal<bool> Thread::Acquire() { + return MakeResult<bool>(true); +} + // Lists all thread ids that aren't deleted/etc. static std::vector<SharedPtr<Thread>> thread_list; |