mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 06:57:59 -05:00
Kernel: Separate WaitSynchronization into Wait and Acquire methods.
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user