mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-12 10:12:54 +01:00
Kernel: Separate WaitSynchronization into Wait and Acquire methods.
This commit is contained in:
1 parent
627e96fc15
commit
aa01c57ae9
8 files changed
+59
-18
No files matched your search
@@ -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