[*] 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()
|
AUKN_SYM IRWLock *RWLockNew()
|
||||||
{
|
{
|
||||||
auto pRwLock = _new RWLockImpl<false>();
|
return _new RWLockImpl<false>();
|
||||||
if (!pRwLock)
|
|
||||||
{
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
return pRwLock;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AUKN_SYM void RWLockRelease(IRWLock *pRwLock)
|
AUKN_SYM void RWLockRelease(IRWLock *pRwLock)
|
||||||
@ -932,13 +926,7 @@ namespace Aurora::Threading::Primitives
|
|||||||
|
|
||||||
AUKN_SYM IRWLock *RWRenterableLockNew()
|
AUKN_SYM IRWLock *RWRenterableLockNew()
|
||||||
{
|
{
|
||||||
auto pRwLock = _new RWLockImpl<true>();
|
return _new RWLockImpl<true>();
|
||||||
if (!pRwLock)
|
|
||||||
{
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
return pRwLock;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AUKN_SYM void RWRenterableLockRelease(IRWLock *pRwLock)
|
AUKN_SYM void RWRenterableLockRelease(IRWLock *pRwLock)
|
||||||
|
Loading…
Reference in New Issue
Block a user