[*] Two annoying formatting issues in RWLock
This commit is contained in:
parent
66cfbb5351
commit
1a383f8157
@ -13,15 +13,14 @@
|
||||
namespace Aurora::Threading::Primitives
|
||||
{
|
||||
#if defined(RWLOCK_VIEW_HAS_PARENT)
|
||||
#define ViewParent (&this->parent_)
|
||||
#define ViewParent (&this->parent_)
|
||||
#else
|
||||
#define ViewParent ((T *)(((char *)this) - (bIsReadView ? RWLockImpl<true>::kOffsetOfRead : RWLockImpl<true>::kOffsetOfWrite)))
|
||||
#define ViewParent ((T *)(((char *)this) - (bIsReadView ? RWLockImpl<true>::kOffsetOfRead : RWLockImpl<true>::kOffsetOfWrite)))
|
||||
#endif
|
||||
|
||||
template<bool bIsReadView, typename T>
|
||||
void RWLockAccessView<bIsReadView, T>::Unlock()
|
||||
{
|
||||
|
||||
if constexpr (bIsReadView)
|
||||
{
|
||||
ViewParent->UnlockRead();
|
||||
@ -340,7 +339,6 @@ namespace Aurora::Threading::Primitives
|
||||
template<bool bIsWriteRecursionAllowed>
|
||||
void RWLockImpl<bIsWriteRecursionAllowed>::UnlockWrite()
|
||||
{
|
||||
|
||||
if constexpr (!bIsWriteRecursionAllowed)
|
||||
{
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user