mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-20 18:05:11 -04:00
os: refactor multi wait apis to better match Nintendo's latest implementation
This commit is contained in:
parent
b45671fd35
commit
02b126c2be
23 changed files with 309 additions and 243 deletions
|
@ -117,7 +117,7 @@ namespace ams::os {
|
|||
++sema->count;
|
||||
|
||||
GetReference(sema->cv_not_zero).Signal();
|
||||
GetReference(sema->waitlist).SignalAllThreads();
|
||||
GetReference(sema->waitlist).WakeupAllMultiWaitThreadsUnsafe();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -132,7 +132,7 @@ namespace ams::os {
|
|||
sema->count += count;
|
||||
|
||||
GetReference(sema->cv_not_zero).Broadcast();
|
||||
GetReference(sema->waitlist).SignalAllThreads();
|
||||
GetReference(sema->waitlist).WakeupAllMultiWaitThreadsUnsafe();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue