mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 19:54:22 -04:00
os: implement 11.x SdkReplyAndReceive
This commit is contained in:
parent
b26ebc12e1
commit
8ac8abf295
12 changed files with 296 additions and 37 deletions
|
@ -26,7 +26,7 @@ namespace ams::os {
|
|||
return GetReference(manager->impl_storage);
|
||||
}
|
||||
|
||||
ALWAYS_INLINE WaitableHolderType *ReinterpretAsWaitableHolder(impl::WaitableHolderBase *base) {
|
||||
ALWAYS_INLINE WaitableHolderType *CastToWaitableHolder(impl::WaitableHolderBase *base) {
|
||||
return reinterpret_cast<WaitableHolderType *>(base);
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ namespace ams::os {
|
|||
AMS_ASSERT(manager->state == WaitableManagerType::State_Initialized);
|
||||
AMS_ASSERT(!impl.IsEmpty());
|
||||
|
||||
auto *holder = ReinterpretAsWaitableHolder(impl.WaitAny());
|
||||
auto *holder = CastToWaitableHolder(impl.WaitAny());
|
||||
AMS_ASSERT(holder != nullptr);
|
||||
return holder;
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ namespace ams::os {
|
|||
AMS_ASSERT(manager->state == WaitableManagerType::State_Initialized);
|
||||
AMS_ASSERT(!impl.IsEmpty());
|
||||
|
||||
auto *holder = ReinterpretAsWaitableHolder(impl.TryWaitAny());
|
||||
auto *holder = CastToWaitableHolder(impl.TryWaitAny());
|
||||
return holder;
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ namespace ams::os {
|
|||
AMS_ASSERT(!impl.IsEmpty());
|
||||
AMS_ASSERT(timeout.GetNanoSeconds() >= 0);
|
||||
|
||||
auto *holder = ReinterpretAsWaitableHolder(impl.TimedWaitAny(timeout));
|
||||
auto *holder = CastToWaitableHolder(impl.TimedWaitAny(timeout));
|
||||
return holder;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue