[*] ConditionEx::WaitForSignalRelativeNanoseconds -> WaitForSignalNS

This commit is contained in:
Reece Wilson 2023-07-29 09:52:59 +01:00
parent a8daf3ff4f
commit 5e94be7487
2 changed files with 13 additions and 13 deletions

View File

@ -21,9 +21,9 @@ namespace Aurora::Threading::Primitives
virtual void WaitForSignal(IWaitable *pWaitable) = 0;
virtual void WaitForSignal(const AuSPtr<IWaitable> &pWaitable) = 0;
virtual void WaitForSignalRelativeNanoseconds(AuUInt64 uRelativeNanoseconds) = 0;
virtual void WaitForSignalRelativeNanoseconds(IWaitable *pWaitable, AuUInt64 uRelativeNanoseconds) = 0;
virtual void WaitForSignalRelativeNanoseconds(const AuSPtr<IWaitable> &pWaitable, AuUInt64 uRelativeNanoseconds) = 0;
virtual void WaitForSignalNS(AuUInt64 uRelativeNanoseconds) = 0;
virtual void WaitForSignalNS(IWaitable *pWaitable, AuUInt64 uRelativeNanoseconds) = 0;
virtual void WaitForSignalNS(const AuSPtr<IWaitable> &pWaitable, AuUInt64 uRelativeNanoseconds) = 0;
virtual void Broadcast() = 0;
virtual void Signal() = 0;

View File

@ -19,9 +19,9 @@ namespace Aurora::Threading::Primitives
void WaitForSignal(const AuSPtr<IWaitable> &pWaitable) override;
void WaitForSignal() override;
void WaitForSignalRelativeNanoseconds(AuUInt64 uRelativeNanoseconds) override;
void WaitForSignalRelativeNanoseconds(IWaitable *waitable, AuUInt64 uRelativeNanoseconds) override;
void WaitForSignalRelativeNanoseconds(const AuSPtr<IWaitable> &waitable, AuUInt64 uRelativeNanoseconds) override;
void WaitForSignalNS(AuUInt64 uRelativeNanoseconds) override;
void WaitForSignalNS(IWaitable *waitable, AuUInt64 uRelativeNanoseconds) override;
void WaitForSignalNS(const AuSPtr<IWaitable> &waitable, AuUInt64 uRelativeNanoseconds) override;
void Signal() override;
void Broadcast() override;
@ -38,18 +38,18 @@ namespace Aurora::Threading::Primitives
}
void SemaphoreConditionVariableImpl::WaitForSignalRelativeNanoseconds(AuUInt64 uRelativeNanoseconds)
void SemaphoreConditionVariableImpl::WaitForSignalNS(AuUInt64 uRelativeNanoseconds)
{
WaitForSignalRelativeNanoseconds(nullptr, uRelativeNanoseconds);
WaitForSignalNS(nullptr, uRelativeNanoseconds);
}
void SemaphoreConditionVariableImpl::WaitForSignalRelativeNanoseconds(IWaitable *pWaitable, AuUInt64 uRelativeNanoseconds)
void SemaphoreConditionVariableImpl::WaitForSignalNS(IWaitable *pWaitable, AuUInt64 uRelativeNanoseconds)
{
return WaitForSignalRelativeNanoseconds(pWaitable ? AuUnsafeRaiiToShared(pWaitable) : AuSPtr<IWaitable> {},
return WaitForSignalNS(pWaitable ? AuUnsafeRaiiToShared(pWaitable) : AuSPtr<IWaitable> {},
uRelativeNanoseconds);
}
void SemaphoreConditionVariableImpl::WaitForSignalRelativeNanoseconds(const AuSPtr<IWaitable> &pWaitable,
void SemaphoreConditionVariableImpl::WaitForSignalNS(const AuSPtr<IWaitable> &pWaitable,
AuUInt64 uRelativeNanoseconds)
{
AuAtomicAdd(&this->uWaiters_, 1u);