[*] Simplified lines of code: shared pointer init

This commit is contained in:
Reece Wilson 2023-08-26 19:02:14 +01:00
parent 7680a86d5a
commit 3e5aa1aff0

View File

@ -916,13 +916,7 @@ namespace Aurora::Threading::Primitives
AUKN_SYM IRWLock *RWLockNew()
{
auto pRwLock = _new RWLockImpl<false>();
if (!pRwLock)
{
return nullptr;
}
return pRwLock;
return _new RWLockImpl<false>();
}
AUKN_SYM void RWLockRelease(IRWLock *pRwLock)
@ -932,13 +926,7 @@ namespace Aurora::Threading::Primitives
AUKN_SYM IRWLock *RWRenterableLockNew()
{
auto pRwLock = _new RWLockImpl<true>();
if (!pRwLock)
{
return nullptr;
}
return pRwLock;
return _new RWLockImpl<true>();
}
AUKN_SYM void RWRenterableLockRelease(IRWLock *pRwLock)