[*] MSVC isn't always inlining lock guards

This commit is contained in:
Reece Wilson 2023-09-19 02:49:48 +01:00
parent 7477bfe56f
commit 595846cb75

View File

@ -29,7 +29,7 @@ namespace Aurora::Threading
public:
LockGuard(const T &lock)
auline LockGuard(const T &lock)
{
ConstlessPtr_t pInterface {};
if constexpr (AuIsPointer_v<T>)
@ -57,7 +57,7 @@ namespace Aurora::Threading
this->pAnnoying_ = pInterface;
}
~LockGuard()
auline ~LockGuard()
{
if (!this->pAnnoying_)
{