diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/ysafeptr.cpp | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/ysafeptr.cpp')
-rw-r--r-- | util/ysafeptr.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/ysafeptr.cpp b/util/ysafeptr.cpp index a8dcb0e0a7..96f2514067 100644 --- a/util/ysafeptr.cpp +++ b/util/ysafeptr.cpp @@ -1,27 +1,27 @@ -#include "ysafeptr.h" +#include "ysafeptr.h" #ifdef CHECK_YPTR2 -Y_POD_THREAD(bool) +Y_POD_THREAD(bool) IObjectBase::DisableThreadCheck; #endif //////////////////////////////////////////////////////////////////////////////////////////////////// void IObjectBase::ReleaseObjComplete(int nMask) { if ((ObjData & 0x3fffffff) == 0 && RefData == 0) { assert((ObjData & 0x40000000) == 0); // object not being invalidated - delete this; + delete this; } else if ((ObjData & nMask) == 0) { if (ObjData & 0x40000000) { // object is already being invalidated // possible when no CObj left and object is invalidated and during this all CMObj are also out return; } - ObjData |= 0xc0000000; - AddRef(); - DestroyContents(); + ObjData |= 0xc0000000; + AddRef(); + DestroyContents(); assert((ObjData & nMask) == 0); // otherwise empty constructor is adding CObjs on self ObjData &= ~0x40000000; - ReleaseRef(); - } + ReleaseRef(); + } } //////////////////////////////////////////////////////////////////////////////////////////////////// void IObjectBase::ReleaseRefComplete() { |