mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 07:28:20 -05:00
Kernel: Separate WaitSynchronization into Wait and Acquire methods.
This commit is contained in:
@ -28,7 +28,7 @@ public:
|
||||
bool signaled; ///< Whether the event has already been signaled
|
||||
std::string name; ///< Name of event (optional)
|
||||
|
||||
ResultVal<bool> WaitSynchronization(unsigned index) override {
|
||||
ResultVal<bool> Wait(unsigned index) override {
|
||||
bool wait = !signaled;
|
||||
if (wait) {
|
||||
AddWaitingThread(GetCurrentThread());
|
||||
@ -36,6 +36,10 @@ public:
|
||||
}
|
||||
return MakeResult<bool>(wait);
|
||||
}
|
||||
|
||||
ResultVal<bool> Acquire() override {
|
||||
return MakeResult<bool>(true);
|
||||
}
|
||||
};
|
||||
|
||||
ResultCode SignalEvent(const Handle handle) {
|
||||
|
Reference in New Issue
Block a user