mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 20:47:57 -05:00
Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks.
This commit is contained in:
@ -29,13 +29,8 @@ public:
|
||||
u64 initial_delay; ///< The delay until the timer fires for the first time
|
||||
u64 interval_delay; ///< The delay until the timer fires after the first time
|
||||
|
||||
ResultVal<bool> Wait(bool wait_thread) override {
|
||||
bool wait = !signaled;
|
||||
if (wait && wait_thread) {
|
||||
AddWaitingThread(GetCurrentThread());
|
||||
Kernel::WaitCurrentThread_WaitSynchronization(WAITTYPE_TIMER, this);
|
||||
}
|
||||
return MakeResult<bool>(wait);
|
||||
ResultVal<bool> Wait() override {
|
||||
return MakeResult<bool>(!signaled);
|
||||
}
|
||||
|
||||
ResultVal<bool> Acquire() override {
|
||||
|
Reference in New Issue
Block a user