[*] Some unwanted indirect branching is still bleeding in; mark more primitive classes as final

This commit is contained in:
Reece Wilson 2023-08-19 11:41:37 +01:00
parent 92ebafecab
commit 7fb8b89def
11 changed files with 12 additions and 12 deletions

View File

@ -11,7 +11,7 @@
namespace Aurora::Threading::Primitives
{
struct LinuxConditionMutex : IConditionMutexEx
struct LinuxConditionMutex final : IConditionMutexEx
{
LinuxConditionMutex();
~LinuxConditionMutex();

View File

@ -11,7 +11,7 @@
namespace Aurora::Threading::Primitives
{
struct UnixConditionMutex : IConditionMutexEx
struct UnixConditionMutex final : IConditionMutexEx
{
UnixConditionMutex();
~UnixConditionMutex();

View File

@ -18,8 +18,8 @@ namespace Aurora::Threading::Primitives
auline AuSPtr<IConditionMutex> GetMutex() override;
auline bool WaitForSignal(AuUInt32 timeout) override;
/*auline*/bool WaitForSignalNsEx(const std::shared_ptr<Win32ConditionMutex> &pMutex, AuUInt64 timeout);
/*auline*/bool WaitForSignalNS(AuUInt64 qwTimeout) override;
bool WaitForSignalNsEx(const std::shared_ptr<Win32ConditionMutex> &pMutex, AuUInt64 timeout);
bool WaitForSignalNS(AuUInt64 qwTimeout) override;
auline void Signal() override;
auline void Broadcast() override;

View File

@ -12,7 +12,7 @@
namespace Aurora::Threading::Primitives
{
struct CriticalSectionImpl : IWaitable
struct CriticalSectionImpl final : IWaitable
{
CriticalSectionImpl();
~CriticalSectionImpl();

View File

@ -12,7 +12,7 @@
namespace Aurora::Threading::Primitives
{
struct EventImpl : IEvent
struct EventImpl final : IEvent
{
EventImpl(bool bTriggered, bool bAtomicRelease, bool bPermitMultipleTriggers);
~EventImpl();

View File

@ -9,7 +9,7 @@
namespace Aurora::Threading::Primitives
{
struct MutexImpl : IHyperWaitable
struct MutexImpl final : IHyperWaitable
{
MutexImpl();
~MutexImpl();

View File

@ -9,7 +9,7 @@
namespace Aurora::Threading::Primitives
{
struct MutexImpl : IHyperWaitable
struct MutexImpl final : IHyperWaitable
{
MutexImpl();
~MutexImpl();

View File

@ -11,7 +11,7 @@
namespace Aurora::Threading::Primitives
{
struct MutexImpl : IWaitable
struct MutexImpl final : IWaitable
{
MutexImpl();
~MutexImpl();

View File

@ -9,7 +9,7 @@
namespace Aurora::Threading::Primitives
{
struct SemaphoreImpl : ISemaphore
struct SemaphoreImpl final : ISemaphore
{
SemaphoreImpl(AuUInt16 intialValue = 0);
~SemaphoreImpl();

View File

@ -12,7 +12,7 @@
namespace Aurora::Threading::Primitives
{
struct SemaphoreImpl : ISemaphore
struct SemaphoreImpl final : ISemaphore
{
SemaphoreImpl(AuUInt16 uIntialValue = 0);
~SemaphoreImpl();

View File

@ -11,7 +11,7 @@
namespace Aurora::Threading::Primitives
{
struct SemaphoreImpl : ISemaphore
struct SemaphoreImpl final : ISemaphore
{
SemaphoreImpl(AuUInt16 intialValue = 0);
~SemaphoreImpl();