[*] Simplified lines of code: shared pointer init
This commit is contained in:
parent
7680a86d5a
commit
3e5aa1aff0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user